this is almost a workaround for the lack of named parameters

J noname at notavailable.notavailabe.com
Tue Mar 26 14:46:51 PDT 2013


On Tuesday, 26 March 2013 at 20:28:39 UTC, J wrote:
> On Tuesday, 26 March 2013 at 09:31:53 UTC, renoX wrote:
>> The things to check is how this feature would work with 
>> optional parameters..
>
> Another thing to check is whether there is enough information 
> in the object files to link across separately compiled objects.
>
> Correct me if I'm wrong, but I don't think object files include 
> the names of struct fields, nor the names of argument 
> parameters.
>
> You might have to do what objective-C does, which is merge the 
> parameter names into the name of the function.


Or maybe there are no link time issues.  If named parameters are 
only ever supplying additional type-check-time information, then 
there would be zero impact at link time. Correct?


More information about the Digitalmars-d mailing list