Christian Kamm wrote:
Unless there's been a change in D2 I have missed, I don't think you can
forward functions with ref/out or default arguments correctly unless you
parse certain mangles or stringofs.
Time for a bug report.
Andrei
See
http://d.puremagic.com/issues/show_bug.cgi?id=1818
or the related
http://d.puremagic.com/issues/show_bug.cgi?id=1411
http://d.puremagic.com/issues/show_bug.cgi?id=1424
Treating default arguments or storage classes with the current scheme is
difficult though - they are not part of the type. While the concept of an
'function argument description' including type, storage class, default
argument and identifier (!) exists in the frontend, it is not exposed to the
user - except through tuples in a fairly accidental and inconsistent manner.
Yes. All we need is a module std.reflection that does all that gruntwork
and exposes a simple and nice interface for people who want to use
reflection.
Andrei