typedefs are useless
BLS
nanali at nospam-wanadoo.fr
Tue Dec 4 06:24:29 PST 2007
Peter C. Chapin schrieb:
> BLS wrote:
>
>> IMO, in this case ADA is slicker than D.
>> I remember that f.i.
>> type Natural is range 0..255
>> is quit often in use.
>
> Actually that's
>
> subtype Natural is Integer range 0 .. Integer'Last;
> Peter
Thanks Peter, that's it.
Too long ago that I've used ADA. :-( However, having something similar
in D would be great.
Bjoern
More information about the Digitalmars-d
mailing list