|
From: Ethan M. <merritt@u.washington.edu> - 2004-10-13 18:01:23
|
> On Tuesday 12 October 2004 11:37 pm, Petr Mikulik wrote: >> The string patch is cool, and looks like complete -- is there still some >> functionality missing? Should we think to put it to cvs soon? > > I was expecting more feedback, but maybe "no news = good news". > Yes, the core code can probably go into cvs. The add-ons should > get more discussion. I'll start separate threads for each. The string variables "extra features" patch (#1043790) only contains two features right now: 1) String variables are auto-promoted to numbers if they are encountered during evaluation of an arithmetic expression. e.g: (3 == "1" + "2") evaluates to TRUE 2) Integers are auto-promoted to strings if they are encountered during evaluation of a string expression. e.g.: N = N + 1 filename = "run_" . N . ".dat" print filename run_4.dat I am not aware of any problems introduced by either feature, but comments are welcome. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |