D2 is really that stable as it is claimed to be?
Maxim Fomin
maxim at maxim-fomin.ru
Sun Sep 22 10:49:09 PDT 2013
On Sunday, 22 September 2013 at 17:15:15 UTC, Mike Wey wrote:
> I've reduced the code causing the error to this:
> ```
> public enum GTokenType
> {
> NONE,
> }
>
> public enum GtkRcTokenType
> {
> INVALID = GTokenType.NONE,
> INCLUDE,
> }
> ```
>
> In this case the value of INVALID + 1 isn't large enough the
> overflow an int.
>
> In the actual code:
> https://github.com/gtkd-developers/GtkD/blob/master/src/gtkc/glibtypes.d#L1310
> Setting NONE to a value lower than 87 makes it so the code
> compiles without error, which only makes things weirder.
Thanks, that's helpful.
More information about the Digitalmars-d
mailing list