Templates
Lorenzo Villani
arbiter at arbiterlab.net
Tue Jan 15 10:34:15 PST 2008
BCS Wrote:
>> Lorenzo Villani wrote:
>> [cut]
> classic D error, try this:
>
> Vector!(Object) myVec = new Vector!(Object)();
>
> All objects are by reference and are, by default set to null, NOT newed.
> If you want a stack allocated type use structs.
>
Heh, C++ habits :-)
> >
> > PS: Can you tell me why the compiler doesn't let me use consts in functions declarations?
>
> const in 1.x is true const, compile time known values like #define does
> in C.
Didn't know that, too
Thanks a lot for the tips!
Lorenzo "Arbiter" Villani
More information about the Digitalmars-d
mailing list