On 2010-10-05 22:19-0400 Schwab,Wilhelm K wrote:

> I was interested in building it (5.9.7) to try the legend code.  Is there a 
> reason for the double pointer?  It seems that
>
>   this part\0that part\0...\0and the last part\0\0
>
> would do the job just as easily??

I guess arranging a string with a bunch of null terminations scattered
through out it to delimit the parts would work, but to me that seems a
less standard approach than simply using an array of pointers to
strings.  My feeling is the present approach will interface well with
standard string handling methods for the various languages we support.
That proved to be the case for python/numpy since that combination has
an object (a numpy array of pointers to strings) which maps quite well
to the present const char ** text. However, that is only one interfacing
case so far, and I am willing to keep an open mind about changing the
present approach if we run into trouble interfacing const char ** text to
other languages.

Alan
__________________________
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
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to