Things that make writing a clean binding system more difficult
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 29 05:37:32 PDT 2016
On Thursday, 28 July 2016 at 20:16:11 UTC, Jonathan M Davis wrote:
> Well, if we decided to make parens with ref legal, then we
> could make it work. e.g.
>
> ref(int) function(int, int) functionPointer;
>
> Now, I don't know of any other case where you'd actually use
> parens with ref if it were legal, but it would solve this
> particular case if we wanted to provide a way around the
> ambiguity.
I had an idea of putting function attributes between return type
and function name:
int ref function(int, int)
More information about the Digitalmars-d
mailing list