A
anno4000
I'd like to draw the attention of those interested in the development
of inside-out techniques to a write-up I have posted on perlmonks under
http://www.perlmonks.org/?node_id=599394. It begins:
With inside-out classes it can be arranged that the class itself behaves
like an object, which I'll call its generic object. The generic object
can be initialized and normal accessors can be used with it to set and
retrieve values. It is, however, not a real object in the sense of a
blessed reference. Different classes have (represent? are?) different
generic objects.
What it amounts to is that every object method of such a class can also
be used as a class method.
It goes on to show how this can be implemented and mentions possible
applications. A brief discussion with other perlmonks follows.
Anno
of inside-out techniques to a write-up I have posted on perlmonks under
http://www.perlmonks.org/?node_id=599394. It begins:
With inside-out classes it can be arranged that the class itself behaves
like an object, which I'll call its generic object. The generic object
can be initialized and normal accessors can be used with it to set and
retrieve values. It is, however, not a real object in the sense of a
blessed reference. Different classes have (represent? are?) different
generic objects.
What it amounts to is that every object method of such a class can also
be used as a class method.
It goes on to show how this can be implemented and mentions possible
applications. A brief discussion with other perlmonks follows.
Anno