spir:

> But: is there a way to define functions corresponding to language operations 
> (opEquals, opIndex, toString...) without creating a true type?

You may find some trick to do something like that, but it's not how D is 
supposed to be used. In D operators belong in a struct/class/enum. "alias this" 
sometimes helps.

Bye,
bearophile

Reply via email to