Since the functionality is the opposite of sprintf("%O"), I think it's reasonable to use %O. The trick is of course that you'd need to provide a program sometimes but not always.
Maybe sscanf could ask the object how many characters it wants.
Slight causality problem here: Since the string is to be sent to the constructor, the length must be known before there even exists an object.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-02-07 16:52: Subject: sscanf and Gmp.mpq
Well, there are some small things to iron out. :)
Maybe sscanf could ask the object how many characters it wants.
But %O already has a definition, ie the reverse of sprintf %O for at least simple datatypes (not object, program).
/ Mirar