On 2013-12-06 07:35-0000 Arjen Markus wrote: >> >> I am not quite sure what the rules are for optional arguments, but the >> gfortran >> compiler complained when I had it in a different place, one that mimicked >> the C API >> more closely. I will have to investigate that. >
> Right, Intel Fortran agrees with gfortran on this, so optional arguments have to appear at the end of the list, which makes sense in a way. If we want it to appear in the same position as the C API, then I will have to use another mechanism. Nothing dramatic, only a bit more code, as I will have to add alternative routines then. Let me know what you think. Let's use "another mechanism" which I assume is function overloading (which I know is possible with Fortran 95). For me it is quite important to keep the same order of arguments in other languages as in C, and function overloading should gives you the chance to do that. 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); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); 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 __________________________ ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel