<div dir="ltr">On 10 June 2013 23:46, David Nadlinger <span dir="ltr"><<a href="mailto:code@klickverbot.at" target="_blank">code@klickverbot.at</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Friday, 7 June 2013 at 23:22:03 UTC, Manu wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think this makes good sense, because other than the choice of calling<br>
convention, it really is just a 'function' in every other way.<br>
</blockquote>
<br></div>
Another less intrusive option would be to just add extern(CppThisCall) and extern(DThisCall) or something along the lines, which would be specified to pass the first parameter as if it was a this pointer.</blockquote><div>
<br></div><div style>That would also do the business. Do you think that's less intrusive?</div><div style>It feels a little hacky though. 'DThisCall' isn't really 'extern' so to speak.</div><div style>
I like my suggestion a lot more. Little details like, what would you name the 'this' argument? You'll end up with conventions like 'void function(T _this)', and that's a bit untrue because there isn't an argument named '_this', it's called 'this' inside the method.</div>
</div></div></div>