Would it hurt much to feed the constructor the remainder of the string and have the genereated object remember how much of it that it wanted?
/ Johan Sundström (Achtung Liebe!)
Previous text:
2004-02-07 16:57: Subject: sscanf and Gmp.mpq
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!)