Against enforce()
Simen kjaeraas
simen.kjaras at gmail.com
Wed Mar 16 22:59:50 PDT 2011
On Thu, 17 Mar 2011 03:03:23 +0100, Daniel Gibson <metalcaedes at gmail.com>
wrote:
> You're right. I just realized it and wanted to reply that correction to
> myself but you were faster :)
> I agree, that *is* helpful.
> A side note: The documentation says the value is returned if it's
> "non-zero".
> enforce() also throws on null (for classes, probably also for pointers)
> and false (for bool..) - this should probably be mentioned in the docs
> ;-)
null and false are also zero. :p
--
Simen
More information about the Digitalmars-d
mailing list