* Alvaro Herrera <alvhe...@commandprompt.com> [090910 23:32]: > Is this really all that hard? I'm thinking it could be implemented by > using the real C sprintf underneath, passing one % specifier and its > corresponding parameter at a time, coerced to whatever the conversion > specifier specifies.
It's not "hard", but please, don't break this, to make it more "not hard": > The only thing that breaks this idea is the $n positional specifiers, I > think. And also, please work for user-defined types (meaning you need to use the type and catalog system to lookup coercions, not hard-code anything... l-) It's doable, but it's going got be a lot of explicit casting and coercion, and going to require a lot of documentation and error states... Remember, users using sprintf are really going to want it to act exactly as it would if they were using C, minus the crash part. a. -- Aidan Van Dyk Create like a god, ai...@highrise.ca command like a king, http://www.highrise.ca/ work like a slave.
signature.asc
Description: Digital signature