float price; if (price == float.nan) { // initialized } else { // uninitialized } ... valid ?

someone someone at somewhere.com
Wed Jun 30 16:19:35 UTC 2021


On Wednesday, 30 June 2021 at 10:38:05 UTC, jmh530 wrote:

> You've never given something away for free?

... more often than usual LoL

Now, seriously, something for free has not a price = 0, it has NO 
price, that's what null is for; we use zero for the lack of null.


More information about the Digitalmars-d-learn mailing list