sure, it will take me a few days as I will be away for a short business
trip, but getting rid of these locally defined variables is worth some
On 2011-02-12 22:01, Alan W. Irwin wrote:
> Hi Arjen:
> To substantially reduce the maintenance burden introduced by
> bindings/tcl/plplot_parameters.h, I have created (as of revision
> 11563) a custom target, check_tcl_parameters, that uses the sed script
> bindings/tcl/global_defines.sed to check the consistency of
> bindings/tcl/plplot_parameters.h with the #defines in
> bindings/swig-support/plplotcapi.i. (The sed script also appends a
> definition of PL_PI which should prove useful.) I have followed
> the directions in the top of the new version of
> bindings/tcl/plplot_parameters.h to make everything consistent.
> The result is that PL_PI and everything #defined in
> bindings/swig-support/plplotcapi.i should be accessible from Tcl
> as 122 (!) namespaced variables.
> This change gives us the opportunity of replacing locally defined
> variables (such as pi, MAG_COLOR, etc.) in the examples by the
> namespaced variables defined in plplot_parameters.h. Would you be
> willing to take advantage of that opportunity by doing the requisite
> changes in the Tcl examples? That would serve as a nice demonstration
> to our users of how to access those namespaced variables while getting
> rid of a lot of redundant local variables.
> Alan W. Irwin
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
> Programming affiliations with the FreeEOS equation-of-state implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
> package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
> Linux Links project (loll.sf.net); and the Linux Brochure Project
> Linux-powered Science
DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited.
The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.