double.init is nan ..?

Adam D. Ruppe destructionator at gmail.com
Fri Mar 14 14:32:49 PDT 2014


On Friday, 14 March 2014 at 17:54:23 UTC, bearophile wrote:
> "is" between complex values should be seen as a special tool, 
> to be used carefully. It's not a good idea to use it widely and 
> carelessly.

Perhaps, but when comparing between the init value it should 
always work because they do the same thing:

init is the bytes copied to the type when it is first declared

is compares the two sets of bytes


Since both are about a simple byte block it should be pretty well 
reliable.


More information about the Digitalmars-d mailing list