On 8 June 2013 09:48, Michel Fortin <[email protected]> wrote:

> On 2013-06-07 23:21:53 +0000, Manu <[email protected]> said:
>
>  Thoughts?
>>
>
> Reminds me of something similar I implemented a while ago:
> http://michelf.ca/projects/d-**objc/syntax/#selector-literals<http://michelf.ca/projects/d-objc/syntax/#selector-literals>
>
> Not only I think member function pointers are doable, but I think they're
> solely missing. There have been situations where I'd have used them but
> instead had to hack my way using a delegate. That was to build a bridge for
> Objective-C (before I decided to hack the compiler). I'd guess you're doing
> something of the sort too?


Precisely. The concept is already embedded inside of delegate, but delegate
is framed like a piece of magic, rather than a well defined compound of
more primitive pieces.
Those primitive pieces would be useful in certain cases (like mine, and
yours).

I think the only missing detail is a way to express a 'thiscall' function
pointer, which I believe my suggestion satisfies quite nicely.

Reply via email to