[system] Repository:
ViewVC logotype

Revision 5453


Jump to revision: Previous Next
Author: dpvc
Date: Thu Aug 30 02:20:06 2007 UTC (12 years, 4 months ago)
Log Message:
Allow specification of values for multiple variables a once for
eval(), substitute() and so on.  You can use

    $f->eval(['x','y'] => Point(1,2));
or
    $f->eval(['x','y'] => [1,2]);
or
    $P = Point(1,2);
    $f->eval(['x','y'] => $P);

to do the equivalent of

    $f->eval(x=>1,y=>2);

Note that you must use quotes for the variable names and that they
must be enclosed in square brackets, not parentheses, when you supply
more than one variable.  You can combine single with multiple
variables, as in

     $f->eval(['x','y']=>Point(1,2),z=>3);

Changed paths:

Path Details
Directorytrunk/pg/lib/Parser.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9