version: multiple conditions

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 18 07:12:58 PDT 2015


On Thu, 18 Jun 2015 12:19:03 +0000, Ola Fosheim Grøstad wrote:

>> p.s. and i hate that "true" converts to "1". in many forth systems
>> "true" is "-1", and it's way better. `a&cast(int)true` actually works
>> for the most widely used case (when a.sizeof <= int.sizeof), for
>> examplt.
> 
> I'm all for very strict typing, but converting true to int is by
> mathematical convention done to 1. On some CPUs it is also the hardware
> value. *shrugs*

never heard of such convention. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150618/7f274426/attachment-0001.sig>


More information about the Digitalmars-d mailing list