The Final(ize) Challenge

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon May 18 11:14:22 PDT 2009


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



More information about the Digitalmars-d mailing list