Shouldn't that be possible for your reference args as well? If it's conveninent for sscanf, I don't see why it couldn't be convenient for other functions as well.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-04-16 16:14: Subject: Pointers/lvalues
Personally I don't have any strong opinion on the syntax for pointer types; I used pointer(foo) only because it was the closest analogy to the current syntax.
Even if pointers are introduced I don't see the point in changing sscanf and reduce it to a normal function. It's already very convenient, for instance in the way one can declare variables directly in the argument list:
if (sscanf (str, "%d %d %s", int a, int b, string rest) == 3) { ... do stuff with a, b and rest ... }
/ Martin Stjernholm, Roxen IS