Overloading `-> gives a lot of problems, mainly for the poor sods who try to inherit the class. I'd only do it for classes that should behave like a mapping. In all other cases I'd think at least twice if there's another way to do it.
/ Martin Stjernholm, Roxen IS
Previous text:
2004-08-30 12:48: Subject: Re: pike modules
Perhaps it's time to create an FAQ at the pike-site. The standard answer to all questions without explicit answer can be "Overload the index operator". ;)
IMHO, overloading the index operator is not always an option. I thinkt it's a way to powerful thing in most cases. I would really like to see some way of adding constants (and programs) anywhere (within a branch) in the namespace. Is there some good reason why this cannot be implemented?
/ Marcus Agehall (PacketFront)