From: Harald H. <h.h...@tu...> - 2004-07-16 17:41:47
|
On Fri, 16 Jul 2004, Petr Mikulik wrote: > > > I will prefer sprintf(). That's compatible to all our famous programm= ing > > > languages and does not require user to search / think "what kind of c= ommand > > > has gnuplot for sprintf?". > > > > But then, we have to rename `print', too. Or, at least introduce a new > > command `printf' which uses the same syntax as sprintf and prints to th= e > > shell (as `print' does with a different syntax). > > I don't see a problem. sprintf() is a function which creates a string, wh= ile > print is a command to print something on screen. While you want to name sprintf according to C names, print does not refer to it at all. I really do not see any command in gnuplot (expect the format specifiers) that is named similar to C functions. But I really think if a command (let it be named sprintf or string) exists with the syntax described by Ethan that prints its result into a string a command should exist that uses the same syntax and prints onto screen. For example, the print command should understand sprintf syntax if its argument starts with a (. Yours Harald --=20 Harald Harders Langer Kamp 8 Technische Universit=E4t Braunschweig D-38106 Braunschweig Institut f=FCr Werkstoffe Germany E-Mail: h.h...@tu... Tel: +49 (5 31) 3 91-3062 WWW : http://www.ifw.tu-bs.de Fax: +49 (5 31) 3 91-3058 |