(j3.2006) binding labels and global identifiers

Van Snyder Van.Snyder
Wed Jun 22 14:49:58 EDT 2011


On Wed, 2011-06-22 at 10:19 -0700, mickistjames at gmail.com wrote:
> With a stroke this would eliminate the user's ability to distinguish 
> between C functions "subr" and "subr_". The user hardly ever wants 
> this privilege and often gets it wrong anyway. It is now user's responsibility 
> to avoid binding label "subr_" if user already has a global identifier with 
> name subr. 

If you've ever looked at Burkhard Burow's cfortran macros, which many
have used for interoperability before it was mentioned in the standard,
you will remember that processors don't all mangle by adding an
underscore at the end of a name.  Some add two underscores.  Some add
one at the beginning.  Some add one at the beginning and one at the
end....

How is a programmer expected to write portable programs?  Isn't that the
goal of the standard?





More information about the J3 mailing list