<div class="gmail_quote">On Mon, Sep 27, 2010 at 21:49, Juanjo Alvarez <span dir="ltr"><<a href="mailto:juanjux@thatwebmailofgoogleproperty.com">juanjux@thatwebmailofgoogleproperty.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;">
<div><div></div><div class="h5">>> Curiously if you create holder like this, it will give an<br>
>> arrayoutofbound error at runtime, I don't know if that is a bug:<br>
</div></div></blockquote><div><br>I think I got this one too. IIRC, it's a bug in the holder["test"] part than the Variant(&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'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>