Create custom data types

Dennis Ritchie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 29 10:17:05 PDT 2015


Hi,
Is it possible to create simple D user-defined data types without 
the use of classes and other OOP?

For example, in Ada is done as follows:

-----
type balance is new Integer range -32_000 .. 32_000;


More information about the Digitalmars-d-learn mailing list