appending newly initialized struct to array
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Apr 18 16:04:18 PDT 2012
On Wed, Apr 18, 2012 at 08:50:10PM +0200, SomeDude wrote:
> On Wednesday, 18 April 2012 at 18:18:44 UTC, Ali Çehreli wrote:
> >On 04/18/2012 10:13 AM, Jonathan M Davis wrote:
> >>
> >> It's by design. An enhancement request is a waste of time.
> >> Comparisons with NaN _always_ return false regardless of what
> >> they're compared against - even NaN. It's not going to change.
> >>
> >> - Jonathan M Davis
> >
> >It shouldn't be a problem to detect comparisons against literal .nan
> >values. The compiler can warn with "comparison is always false".
> >
> >Ali
>
> Now THAT makes sense.
+1.
T
--
"Computer Science is no more about computers than astronomy is about telescopes." -- E.W. Dijkstra
More information about the Digitalmars-d-learn
mailing list