References in D

bearophile bearophileHUGS at lycos.com
Mon Sep 24 05:30:29 PDT 2012


Regan Heath:

> In fact, I am often annoyed that 'int' doesn't have an 
> equivalent value, and instead I have to invent a magic number 
> and ensure it's never a possible valid value.

Try to start using Nullable of Phobos:

http://dlang.org/phobos/std_typecons.html#Nullable

Bye,
bearophile


More information about the Digitalmars-d mailing list