[phobos] phobos commit, revision 1674

Steve Schveighoffer schveiguy at yahoo.com
Mon Jun 21 14:39:13 PDT 2010


>From the numeric.d diff line 365 (and others), should we have code that relies on the implicit casting of bool to 1 or 0?  I find that kind of code disturbing, but maybe it's just me.  I'd rather see something like:

return cast(size_t) log10( 1uL << precision - ((flags&Flags.storeNormalized) != 0 ? 1 : 0));

But that looks crappy too (though less disturbing).  What do others think?

-Steve



----- Original Message ----
> From: dsource.org <noreply at dsource.org>
> To: phobos at puremagic.com
> Sent: Mon, June 21, 2010 4:22:19 PM
> Subject: [phobos] phobos commit, revision 1674
> 
> phobos commit, revision 1674


user: Don Clugston

msg:
Two 
> more B 
> stings.

http://www.dsource.org/projects/phobos/changeset/1674

_______________________________________________
phobos 
> mailing list

> href="mailto:phobos at puremagic.com">phobos at puremagic.com
http://lists.puremagic.com/mailman/listinfo/phobos


      


More information about the phobos mailing list