<div class="gmail_quote">On Mon, Sep 27, 2010 at 21:49, Juanjo Alvarez <span dir="ltr">&lt;<a href="mailto:juanjux@thatwebmailofgoogleproperty.com">juanjux@thatwebmailofgoogleproperty.com</a>&gt;</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;">
<div><div></div><div class="h5">&gt;&gt; Curiously if you create holder like this, it will give an<br>
&gt;&gt; arrayoutofbound error at runtime, I don&#39;t know if that is a bug:<br>
</div></div></blockquote><div><br>I think I got this one too. IIRC, it&#39;s a bug in the holder[&quot;test&quot;] part than the Variant(&amp;c.test) part.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="h5"><br>
</div></div>Yep, variants are cool. You could even use an struct as value type of the<br>
associative array and store the variant in one member and the signature<br>
of the delegate, as string, in another member. The you could use a mixin<br>
in the receiver to extract the delegate without knowing the original<br>
signature.<br>
<br>
All this is  wonderfully disturbing to me :)<br>
</blockquote></div><br>I&#39;m not sure you can. You can only mixin strings known at compile-time. Your string member will only have a value at runtime.<br>Except if the struct is an enum, maybe.<br><br><br>Philippe<br>