Implicit encoding conversion on string ~= int ?
Marco Leise
Marco.Leise at gmx.de
Sun Jun 23 22:20:10 PDT 2013
Am Sun, 23 Jun 2013 17:50:01 -0700
schrieb Jonathan M Davis <jmdavisProg at gmx.com>:
> I don't think that we even succeeded at coming close to
> convincing Walter that _bool_ isn't an integral type and shouldn't be treated
> as such (when it was discussed right before deconf), and that should be a far
> more clearcut case.
>
> - Jonathan M Davis
You can take bool to int promotion out of my...
// best way to toggle forth and back between 0 and 1. "!" returns a bool.
value = !value
// don't ask, I've seen this :)
arr[someBool]
// sometimes the bool has just the value you need
length -= boolRemoveTerminator
--
Marco
More information about the Digitalmars-d
mailing list