From: stephan b. <st...@s1...> - 2004-12-19 22:24:23
|
Yo again! i'm working on re-implementing eshell on top of P (pshell, of course), and i've come across a couple usability problems: - AboutData cannot be default-constructed. This means i can't currently deserialize it because i cannot classload it without installing a factory which creates a bogus one by passing invalid info to the ctor. This change implies that various mutators have to be added, like copyright(string), etc. - Having non-const overloads of the list<> accessors would make de/serialization a snap: serialize_subnode( mynode, "authors", this->about().authors() ); deserialize_subnode( mynode, "authors", this->about().authors() ); - SimpleApp also can't be default constructed. Same prob as above: can't classload it without adding a completely bogus factory, plus creating a bogus AboutData to pass to that object's ctor. Also, how about a protected: AboutData & about(); (non-const) so that subclasses can modify/serialize that object. Are these feasible? -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |