On 2007-07-03 07:11-0700 Alan W. Irwin wrote:

>> Added two new files to the bindings directory, plplot_auxiliary.adb and
>> plplot_auxiliary.ads. This was necessary in order to make the PLplot_Thin
>> bindings disappear to the user. These files contain a few basic declarations
>> used by all of the bindings (which were formerly exported by PLplot_Thin) and
>> some utility procedures used by several of the examples.
>
> Hi Jerry:
>
> I committed your Ada patch.

After committing your patch I tried one further local change; removing all
references to PLplot_Auxiliary from the examples because both the thick
and traditional examples refer to Ada interfaces which in turn refer
to PLplot_Auxiliary.

However, that lead to the following type of error for both thick and
traditional examples for both example 1 and example 12 (example 10 is
so simplistic it doesn't run into the problem):

xthick01a.dir/xthick01a.o
xthick01a.adb:39:14: "Real_Vector" is not visible (more references follow)
xthick01a.adb:39:14: non-visible declaration at plplot_auxiliary.ads:26
xthick01a.adb:39:26: incorrect constraint for this kind of type
xthick01a.adb:43:11: "String_80" is not visible
xthick01a.adb:43:11: non-visible declaration at plplot_auxiliary.ads:68

I presume with the appropriate namespace commands in
plplot_traditional.ad[bs] and plplot.ad[bs] all the PLplot_Auxiliary
definitions (e.g., String_80, etc.) could be
made visible to the examples without having to explicitly mention
PLplot_Auxiliary in the examples.

In sum, there should be no fundamental need to mention PLplot_Auxiliary in
the examples but this appears to be currently required because of namespace
issues. Getting such namespace concerns properly dealt with is always a bit
of a struggle in any given language, but I hope you are able to figure this
out for Ada with help from your Ada contacts/references.

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
__________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to