<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 April 2014 22:03, Michel Fortin <span dir="ltr"><<a href="mailto:michel.fortin@michelf.ca" target="_blank">michel.fortin@michelf.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 2014-04-01 07:11:51 +0000, Manu <<a href="mailto:turkeyman@gmail.com" target="_blank">turkeyman@gmail.com</a>> said:<br>

<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Of course, I use alias this all the time too for various stuff. I said<br></div>
before, it's a useful tool and it's great D *can* do this stuff, but I'm<div class=""><br>
talking about this particular super common use case where it's used to hack<br>
together nothing more than a class without a vtable, ie, a basic ref type.<br>
I'd say that's worth serious consideration as a 1st-class concept?<br>
</div></blockquote>
<br>
You don't need it as a 1st-class D concept though. Just implement the basics of the C++ object model in D, similar to what I did for Objective-C, and let people define their own extern(C++) classes with no base class. Bonus if it's binary compatible with the equivalent C++ class. Hasn't someone done that already?</blockquote>
<div><br></div><div>I don't think the right conceptual solution to a general ref-type intended for use throughout D code is to mark it extern C++... That makes no sense.</div></div></div></div>