On Thu, Mar 10, 2011 at 09:14:45PM -0800, Alan Irwin wrote: > On 2011-03-10 17:03-0800 Alan W. Irwin wrote: > >> My own priority right now is to deal with the swig-generated binding >> build errors so we can enable all languages by default again. > > It turns out that const modifiers can mess up typemap matching for > the composite argument cases unless you put const into the typemap > argument identifiers consistent with the C API arguments in > plplotcapi.i. To avoid any ambiguity about this, I have decided to > use const modifiers consistently for all Matrix (except for > outMatrixCk) and Array types of typemaps (not just the composite > typemaps). The result (revision 11618) is that Java now builds and > gives results that are consistent with C. I have enabled Java > by default because of this good result. > > This good swig result for Java bindings and examples gives me a lot of > confidence that the remaining issues with Python, Lua, and Octave will > be straightforward for me to sort out.
This is good because it means we can avoid the overhead of copying back data in the typemaps where the arrays are marked as const. While the cost is generally small, it is one less thing to do. It is an example of why const might make a tangible difference to plplot. Andrew ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel