Why aren't overloaded nested functions allowed?

Max Samukha via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 31 07:39:50 PDT 2016


On Tuesday, 31 May 2016 at 11:54:40 UTC, Timon Gehr wrote:
> On 30.05.2016 18:22, Max Samukha wrote:
>>  From the spec (https://dlang.org/spec/function.html#nested): 
>> "Nested
>> functions cannot be overloaded."
>>
>> Anybody knows what's the rationale?
>
> The rationale is that nobody has implemented it in DMD.
> https://issues.dlang.org/show_bug.cgi?id=12578

Ah, that "seems pointless" argument again.


More information about the Digitalmars-d-learn mailing list