const challenge

Walter Bright newshound1 at digitalmars.com
Sun Feb 3 03:08:34 PST 2008


Robert Fraser wrote:
> Walter Bright wrote:
>> Janice Caron wrote:
>>> On 2/2/08, Walter Bright <newshound1 at digitalmars.com> wrote:
>>>> It can be solved by having the result type of ~ be a polysemous
>>>> type, i.e. its type is based on how it is used.
>>>
>>> Will we be able to write our own functions which are declared to
>>> return polysemous types?
>>
>> No. They're basically a hack.
> 
> We can do it with macros, though, right?

Yes.



More information about the Digitalmars-d mailing list