This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://sourceware.org/bugzilla/show_bug.cgi?id=21185

--- Comment #9 from Pedro Alves <palves at redhat dot com> ---
> 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.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]