<div dir="ltr">On 11 June 2013 00:43, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</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 2013-06-10 15:47, Manu wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm really not asking for delegates (although they could become more<br>
typesafe given my suggestion), just a member function pointer. And not<br>
C++ style as you say, my suggestion is much simpler than that, and would<br>
fit nicely in D.<br>
</blockquote>
<br></div>
I give up, I don't understand what you want.</blockquote><div><br></div><div style>...a member function pointer syntax. It's not that complex.</div><div style><br></div><div style>My suggestion is: void function(T this) funcptr;</div>
<div style>This is a function pointer (not a delegate), but using keyword 'this' gives the critical detail to the compiler that it's a member function pointer, and to use the appropriate calling convention when making calls through this pointer.</div>
<div style>UFCS makes it awesome.</div></div></div></div>