Null references (oh no, not again!)

bearophile bearophileHUGS at lycos.com
Wed Mar 4 13:34:44 PST 2009


Walter Bright:
> Joel C. Salomon:
> > To avoid this class of bug, you need a simple way to declare what the
> > acceptable values for a variable are.
> 
> Languages have had this capability, but it never caught on. People found 
> it just too tedious.

What? We use ranges of integers in Delphi at work today :-)
I have even proposed something similar for D twice in the past. (But to be precise, I often don't use ranged integral numbers for the purpose discussed here).

Bye,
bearophile



More information about the Digitalmars-d mailing list