Can operators "return" type?

bearophile bearophileHUGS at lycos.com
Thu Nov 29 13:53:19 PST 2012


Zhenya:

> For example:
>
> struct MyIntType
> {
> alias int type;
> template opSlice()
> {
> alias type opSlice;
> }

As you guess, this is not supported in D.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list