<br><br><div class="gmail_quote">On Mon, Apr 19, 2010 at 22:58, Steven Schveighoffer <span dir="ltr"><<a href="mailto:schveiguy@yahoo.com">schveiguy@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
I'm not used to using interfaces in this way. What become the stored T<br>
values when you cast the classes into IW to construct your array? I suppose<br>
they're lost?<br>
</div></blockquote><br>
<br>
Not sure what you mean...<br></blockquote><div><br>What if the class has some value in it? In your code:<br><br>class WByVal(T) if (implementsW!T)<br>
{<br>
this(T val) {this._t = val;}<br>
private T _t;<br>
int foo(int x)<br>
{<br>
return _t.foo(x);<br>
}<br>
}<br>
<br>What happens to _t when I cast a WByVal to a IW?<br></div></div>