[J3] Default values for optional arguments

Malcolm Cohen malcolm at nag-j.co.jp
Thu Jan 21 07:52:28 UTC 2021


No, that was done *in* the Enhanced Interoperability TS, and for good reason, viz OPTIONAL says to pass by reference, while VALUE says to pass by value.

 

Cheers,

-- 

..............Malcolm Cohen, NAG Oxford/Tokyo.

 

From: J3 <j3-bounces at mailman.j3-fortran.org> On Behalf Of Van Snyder via J3
Sent: Thursday, January 21, 2021 3:04 PM
To: j3 at mailman.j3-fortran.org
Cc: Van Snyder <van.snyder at sbcglobal.net>
Subject: Re: [J3] Default values for optional arguments

 

On Thu, 2021-01-21 at 03:55 +0000, Bill Long via J3 wrote:

OPTIONAL and VALUE cannot be specified together for a dummy argument in a  procedure with the BIND attribute. 

 

This was done before the Enhanced Interoperability TS. Is there any excuse to keep it?

 

 

Disclaimer

The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. Please see our Privacy Notice <https://www.nag.co.uk/content/privacy-notice>  for information on how we process personal data and for details of how to stop or limit communications from us.

This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210121/be19947c/attachment-0001.htm>


More information about the J3 mailing list