Can operators "return" type?

Zhenya zheny at list.ru
Thu Nov 29 08:33:57 PST 2012


Hi!
It would useful for some my project,if operators could be a 
template,that "return"
type.Something like

alias TypeTuple!(int,char) types;

static assert(types[1] == char) //opIndex

So can I define something like that?


More information about the Digitalmars-d-learn mailing list