Can operators "return" type?

Zhenya zheny at list.ru
Thu Nov 29 13:54:48 PST 2012


On Thursday, 29 November 2012 at 21:53:20 UTC, bearophile wrote:
> Zhenya:
>
>> For example:
>>
>> struct MyIntType
>> {
>> alias int type;
>> template opSlice()
>> {
>> alias type opSlice;
>> }
>
> As you guess, this is not supported in D.
>
> Bye,
> bearophile

Thank you,understood(


More information about the Digitalmars-d-learn mailing list