Value Preservation and Polysemy

Walter Bright newshound1 at digitalmars.com
Mon Dec 1 13:30:54 PST 2008


Fawzi Mohamed wrote:
> On 2008-12-01 21:16:58 +0100, Walter Bright <newshound1 at digitalmars.com> 
> said:
> 
>> Andrei Alexandrescu wrote:
>>> I'm very excited about polysemy. It's entirely original to D,
>>
>> I accused Andrei of making up the word 'polysemy', but it turns out it 
>> is a real word! <g>
> 
> Is this the beginning of discriminating overloads also based on the 
> return values?

No. I think return type overloading looks good in trivial cases, but as 
things get more complex it gets inscrutable.



More information about the Digitalmars-d mailing list