Combining Delegate and Functions

Daniel Keep daniel.keep.lists at gmail.com
Tue Jun 30 20:54:43 PDT 2009



BCS wrote:
> here's a general version that should work but dosn't:

The problem is that out and ref aren't types; they're storage classes,
and D's current metaprogramming system has no way of accessing these.

You CAN get at them with .stringof, but that's 100% undocumented and a
MASSIVE pain in the arse.  It also means you have to write horrible
parsing code every single time you want to wrap a function.

There *really* has to be a better way.



More information about the Digitalmars-d mailing list