DMD producing huge binaries

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Mon May 23 13:30:12 PDT 2016


On 5/23/16 4:25 PM, Walter Bright wrote:
> On 5/23/2016 12:03 PM, Steven Schveighoffer wrote:
>> Indeed, D does not overload based on return type ever.
>
> It does factor into type matching when a function pointer is used, for
> example.
>

Yes, that may be the only time return type is factored in, but 
practically speaking, a function overload set that overloads solely on 
return type is not directly callable (you will get ambiguity error), so 
there is little point to create such a situation.

-Steve


More information about the Digitalmars-d mailing list