interface with C++ for example (for example extern(C++) classes )<br><br><div class="gmail_quote">On Thu, May 16, 2013 at 2:31 AM, Maxim Fomin <span dir="ltr"><<a href="mailto:maxim@maxim-fomin.ru" target="_blank">maxim@maxim-fomin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thursday, 16 May 2013 at 09:05:46 UTC, Dicebot wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wednesday, 15 May 2013 at 19:30:41 UTC, Dmitry Olshansky wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Won't this work?<br>
*cast(void**)&object<br>
</blockquote>
<br>
Right question is "is this guaranteed to work by spec?".<br>
</blockquote>
<br></div></div>
Spec is silent about this but in practice this should work. Real question is here why would you want "pointer to class" when you have normal reference and what such "pointer" would give you.<br>
</blockquote></div><br>