Morusaka schrieb:
Hi,
I've read about opdot in D language spec operator overload section, but the
little snippet of code provided isn't enough, for me, to figure out what it is
supposed to do and how to use it or what it could be usefull for.
Could you please help me to get the right way?
Well, if D wasn't OO, I'd say it's some way to provide exactly that,
e.g. the scripting language Lua does it that way: if it can't find a
member in a table, it looks in another one specified similarly to this
opDot way. That provides some kind of "inheritance".
But I can't currently imagine any way to use this either.