[Bug rust/21185] add i128 and u128 support to rust

tromey at sourceware dot org sourceware-bugzilla@sourceware.org
Mon May 22 22:25:00 GMT 2017


--- Comment #10 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Pedro Alves from comment #9)
> > It seems like it would hard to even find the places, unless maybe the new
> > type was a class that did not allow conversions from integer types.
> > Hmm...
> Yeah, I think a class (plus arithmetic operators) would be what I'd try too.
> Maybe we could borrow gcc's wide_int (or parts of it).
> Not sure about disabling conversions from integer types.  I'd assume it to
> be handy, to allow natural initialization from 0 and 1 [integer foo = 1;],
> etc.  I'd think that it's conversion to (narrower) integer types that would
> be an issue.

Yeah, duh, that makes sense.

I've got some cleanups to the scalar printing code that might be useful.
Not quite done -- there's some weird stuff in there.
I haven't looked at the arithmetic stuff.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Gdb-prs mailing list