[system] Repository:
ViewVC logotype

Revision 3483


Jump to revision: Previous Next
Author: dpvc
Date: Fri Aug 12 01:21:48 2005 UTC (14 years, 3 months ago)
Log Message:
Added redefine() function to complement undefine() for various
Context() values.  For example

      Context()->operators->undefine('+');

makes '+' undefined, but

      Context()->operators->redefine('+');

will put it back.  You can specify a context from which to take the
redefinition, and a name in that context, as in

      Context()->operators->redefine('U',from=>"Interval");
      Context()->operators->redefine('u',from=>"Interval",using=>"U");
      Context()->operators->redefine('U',from=>$content);

where $content is a reference to a Context object.

The undefine() function lets you undefine several items at once, as in

      Context()->operators->undefine('+','-');

For redefine, you must put multiple names in square brackets because
of the optional parmeters:

      Context()->operators->redefine(['+','-']);

Changed paths:

Path Details
Directorytrunk/pg/lib/Parser/Context/Functions.pm modified , text changed
Directorytrunk/pg/lib/Parser/Context/Operators.pm modified , text changed
Directorytrunk/pg/lib/Value/Context/Data.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9