Feature request: lazy as a type constructor
renoX
renosky at free.fr
Sun Oct 7 04:20:51 PDT 2007
Janice Caron a écrit :
> Please may we have "lazy" as a type constructor (as well as a
> parameter storage class)? Currently I can declare a lazy array of
> ints, but not an array of lazy ints.
Uh?
An int is a 32b machine word, so an array of int is a pretty efficient
structure, so you cannot assingn a special value to an int not created.
So an array of lazy int is probably an array of references to int, which
is not very efficient..
renoX
More information about the Digitalmars-d
mailing list