Initial feedback for std.experimental.image

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 10 19:04:29 PDT 2015


On Sat, 11 Jul 2015 01:51:41 +0000, Vladimir Panteleev wrote:

>> giving that `int` and `uint` are freely interchangeable... `uint` is
>> better, as it allows only one bound check in `if`, and without casts.
>> ;-)
> 
> That's a poor reason. Optimizing x>=0 && x<100 to an unsigned check is
> such a basic optimization, even DMD can do it.

but `if (x < 100)` is less typing than `if (x >= 0 && x < 100)`!
-------------- 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/20150711/ea58772a/attachment.sig>


More information about the Digitalmars-d mailing list