Functions that return type

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 16 16:06:16 PST 2016


On 01/16/2016 02:50 PM, data pulverizer wrote:

 > I guess I have been writing a lot of julia where I take
 > creating arrays and tuples of types for granted. In this case
 > types are of type DataType. [...] I guess the constraints are
 > that of a static language.

Exactly. I am sure every D compiler has the equivalent of DataType and 
every type used in a program has instances of it but such information 
disappears by the end of compilation, except their properties in the 
form of TypeInfo as sarn has already mentioned.

Ali



More information about the Digitalmars-d-learn mailing list