Hi Alan,


I have tried to close the ticket, but there is no way that I can do it or I 
must overlooking something. I can edit the individual comments, but I do not 
see any button to change the status or to assign it to anyone.



As for the kinds of integers and logicals, I suggest:



integer, parameter :: plint = kind(0)   ! The default integer, which is in 99% 
of the cases a 4-bytes integer

integer, parameter :: plbool = kind(.false.)



(Note: There is no function like selected_log_kind to select different kinds of 
logicals in a standard way.)



We may even want to add:



Integer, parameter :: plchar = selected_char_kind('DEFAULT') ! Or 'ASCII'



to make everything work completely parametrised.



This should have no effect on user code, but will give us more freedom in the 
future. And it may help users with an old code base.



Regards,



Arjen

> -----Original Message-----
> From: Alan W. Irwin [mailto:[email protected]]
> Sent: Monday, September 08, 2014 6:27 PM
> To: Arjen Markus
> Cc: PLplot development list
> Subject: RE: patch 27
>
> Hi Arjen:
>
> On 2014-09-08 07:39-0000 Arjen Markus wrote:
>
> > Hm, I can not find the function islen() in the current source code.
> It disappeared in SVN-revision 12099. He must have been looking at a pretty 
> old
> version.
>
> I also did a regex search for integer*4 anywhere in bindings/f95/* and could 
> not find
> any instances.  So please change the status of this patch from open to 
> closed-fixed
> to help keep our patch-tracker clean.  The way you change status of patches 
> at SF is
> hit the edit button (which should be available to you as a PLplot developer 
> when you
> login to SF).  Please let me know if you have any difficulty with this status 
> change.
>
>
> > I will check the source code for leftovers from the old days
> (integer*4 and friends are a widespread extension that is completely 
> superfluous and
> clumsy since the introduction of kinds some 20 years ago).
>
> This is a separate but most interesting topic.  I think we should follow what 
> we do for
> plflt and plunicode for the indefinite integer and logical types that 
> currently appear in
> our Fortran code. That is, add
>
> integer, parameter :: plint  = 4
> integer, parameter :: plbool  = 4
>
> to bindings/f95/plflt.inc.in, and replace all instances of integer in our 
> Fortran code
> with integer(kind=plint) and all instances of logical in our Fortran code with
> integer(kind=plbool).
>
> This change might obviously be a really important issue for those using 
> PLplot in
> legacy mode like Donald Spong, if such users would have to retype all their 
> integer
> types that were used for PLplot subroutine arguments.  But I don't think that 
> has
> been an issue for the floating-point types and simply inserting "use plplot" 
> in legacy
> code normally covers all such issues other than actual backwards-incompatible 
> API
> changes that have occurred for some of our routines.
>
> If you confirm there are no additional legacy issues introduced by the above 
> change,
> and assuming you like the change in general, I would be willing to do the 
> large
> amount of editing that would be required since that can be done automatically 
> with
> sed.
>
> 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
> __________________________

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.
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to