Short list with things to finish for D2

gzp galap at freemail.hu
Thu Nov 19 01:10:20 PST 2009


> Yes; opBinary was just given as an example. Unary operators look like this:
> 
> T opUnary(string op)();
> 
>> (And maybe trinary operators ?: ) :)
>> Can they still be overloaded ? Will they have a similar syntax ? If so
>> what about the e++ and ++e operators? How they are distinct ? Or is 
>> the latter eliminated from the language ?
>> Though, I like the idea, just a quick look at a code and you can see 
>> all the operators in a place.
>>
>> Bye, Gzp
> 
> I think user code should only define ++e. Then the compiler can use that 
> to define e++.
> 
> 
> Andrei

Thanks, that's great.

Gzp



More information about the Digitalmars-d mailing list