Non-null objects, the Null Object pattern, and T.init

Walter Bright newshound2 at digitalmars.com
Sat Jan 18 13:57:21 PST 2014


On 1/18/2014 1:38 PM, Michel Fortin wrote:
> The closest thing I can think of is range constrains. Here's an example
> (invented syntax):


I don't think a new syntax is required. We already have the template syntax:

    RangedInt!(0,10)

should do it.


More information about the Digitalmars-d mailing list