problem with isnan
Charles Hixson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Nov 11 14:03:37 PST 2016
On 11/11/2016 01:34 PM, John C via Digitalmars-d-learn wrote:
> On Friday, 11 November 2016 at 20:55:52 UTC, Charles Hixson wrote:
>> Thank you. Unfortunately:
>> import std.math;
>> ...
>> assert (isNan (c.curActivation), "cell has unexpected
>> curActivation: %s".format(c.curActivation));
>>
>> yields:
>> cell.d(292): Error: undefined identifier 'isNan', did you mean
>> overloadset 'isnan'?
>
> It should be isNaN.
>
Ok, now it seems the same as std.math.isnan, (i.e., it works properly).
On looking over the error messages more closely (just now) I noticed
that the line number had now changed. Whoops! It just *LOOKED* like
the error hadn't been fixed, where it had actually moved onto the next
one. The hint should have been that it was printing an integer
value...I mean besides the changed line number.
More information about the Digitalmars-d-learn
mailing list