Overview
| Artifact ID: | f4658b43039996830798366911c38915a3378833 |
|---|---|
| Ticket: | 3474460fffffffffffffffffffffffffffffffff
targetObject should be optional for oo::copy |
| User & Date: | dkf on 2012-01-30 20:33:15 |
Changes
- icomment:
I'm curious as to why there's a need to make all those STORABLEs. In particular, what's the benefit to putting those in their own classes as opposed to having the WRITE as a method on A...E directly? (When I wrote a TclOO serializer I didn't store the classes themselves, but that was due to the use-case I had in mind. That didn't require this baroque structure.) You could arrange for the creation of the method to be done by a metaclass if writing it directly is too onerous. Metaclasses (classes that are subclasses of oo::object) are essentially a way of massively customizing the class manufacturing process and let you do some *really* funky stuff.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"