you might try using std.math.isNaN instead and see what it does.It was default initialized by the class instance:class Cell ... float curActivation; ...The this method doesn't have any mention of a few variables that are supposed to be default initialized, or which curActivation is one.
std.math.isNaN should work for the default initialization (at least it does for doubles)