Templated Interfaces?
Benji Smith
dlanguage at benjismith.net
Sun Aug 24 14:06:39 PDT 2008
Simen Kjaeraas wrote:
> You do not need to initialize the the array with the "new I!(char)[]".
> Just use
>
> I!(char)[] array;
> array ~= new C!(char)('a');
> ...
> char value = array[0].x();
Gotcha.
Coming from Java, it's hard getting used to which types require a 'new'
and which ones don't. I find the array types especially confusing.
Thanks for your help!
--benji
More information about the Digitalmars-d-learn
mailing list