Re: Fortran 77 alphabet character $




On Thu, 29 May 2008 06:15:27 -0700 (PDT), Arjen Markus <arjen.markus@xxxxxxxxxx> wrote:

-|If I remember correctly, some compilers allowed the use
-|of a $ sign as an extension. It was allowed only as the
-|first character. I do not know what the default type
-|would have been.
-|
-|Other compilers I have seen used it in formats: we now
-|use ADVANCE='NO' for the same functionality.
-|
-|It seems to me your professor has a problem here. My
-|suggestion would be to:
-|- Find a letter in the alphabet that is not used that
-| often as the first character (a Z perhaps?)
-|- Use that to replace the $ sign
-|- Make sure that there is no overlap with existing
-| variable names. You could use a tool to create a list
-| of variables then.
-|
-|Regards,
-|
-|Arjen

Arjen: thanks. But my original post precludes each of your good suggestions.

Skip

.



Relevant Pages

  • Re: Hollerith data initialization
    ... It was removed from the standard in f77. ... Most f90 compilers continue to implement it, ... The replacement for Hollerith is character type. ...
    (comp.lang.fortran)
  • Re: Backslashes
    ... doesn't conform to the standard. ... compatibility with existing f77 compilers at the time). ... any special translation to visible characters the user has typed. ... impose a peculiar translation of a visible character, ...
    (comp.lang.fortran)
  • Re: Hollerith constants on a little endian machine
    ... (snip of code using Hollerith constants and CHARACTER variables.) ... code, the first time pre-f77 code ran into trouble on an f77 compiler, about 25 years ago. ... To me, the advice was clear, that Hollerith constant strings should be changed to 'ABC' strings, no later than when character declarations were added for the receiving variables. ... We did have f66 compilers which accepted the quoted strings before we had f77 compilers. ...
    (comp.lang.fortran)
  • Re: Why does Fortran have FORMAT statements?
    ... about what compiler allegedly violates the standard in this way. ... Continuation of character strings is subtle in fixed format. ... Some compilers may interpret it that way, ... uses Format statements was that it was the only option for about half ...
    (comp.lang.fortran)
  • Re: Backslashes (was: gfortran diagnostics and so on)
    ... doesn't conform to the standard. ... compatibility with existing f77 compilers at the time). ... impose a peculiar translation of a visible character, ... Given that the backslash is part of the ...
    (comp.lang.fortran)