function default parameters lost

Paul D Anderson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 26 13:36:51 PDT 2015


On Thursday, 25 June 2015 at 14:17:13 UTC, Paul D Anderson wrote:
> On Thursday, 25 June 2015 at 07:10:57 UTC, tcak wrote:
>> On Thursday, 25 June 2015 at 04:43:51 UTC, Paul D Anderson 
>> wrote:
>>> I'm trying to pass a function pointer while keeping the 
>>> default parameter values intact. Given the following:
>>>
>>> [...]
>>
>> I filed a bug about 2-3 months ago about default parameters 
>> similar to yours. My guess is that it hasn't been fixed yet, 
>> and you have hit the same issue.
>
>
> Thanks

Turns out this is expected behavior. Default parameter values are 
stripped from function pointers.


More information about the Digitalmars-d-learn mailing list