templates

Philippe Sigaud philippe.sigaud at gmail.com
Mon Apr 19 13:52:40 PDT 2010


On Mon, Apr 19, 2010 at 21:20, Steven Schveighoffer <schveiguy at yahoo.com>wrote:

>
> Here is a quick-and-dirty solution, if you don't mind using
>> classes/interfaces.
>>
> (snip)

I'm not used to using interfaces in this way. What become the stored T
values when you cast the classes into IW to construct your array? I suppose
they're lost?

Does that mean that if we have a bunch of T (all different types),you map a
call to makeW on it, get back a bunch of WByVal!T (all different types),
cast them to IW and... what? erase the types?


Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100419/bffcf4ad/attachment.html>


More information about the Digitalmars-d-learn mailing list