DMD 0.174 release
Walter Bright
newshound at digitalmars.com
Wed Nov 15 00:20:14 PST 2006
Jarrett Billingsley wrote:
> 1) For the delegate .funcptr property, would it be possible for it to
> include the context pointer as the first parameter? Currently the .funcptr
> allows us to get the type / call signature of the delegate but it's not
> possible to actually use the resulting function as there is no way to pass
> it the context short of dipping into ASM..
I don't see a reasonable way to do that at the moment.
> 2) The class/struct .tupleof property is cool, but is there any way to get
> at the names of the corresponding fields? Additionally, what would _really_
> rock my socks would be a way to get the tuple of the class/struct _methods_.
> That would probably immediately make many kinds of reflection possible from
> within the language.
Possibly.
> Indexing tuples rules, btw.
I think we've only begun to see what this is good for. It's so *painful*
to do this in C++ that I don't think people have really got that far
beyond the first steps.
More information about the Digitalmars-d-announce
mailing list