🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #6572

Re: What is the "$"?

#6572
From: Richard Maine
Date: Sat, 30 Aug 1997 00:00
33 lines
1919 bytes
Jean-Yves Rehby <MON_NOM@ensic.u-nancy.fr> writes:

> > I don't know what is the meaning of the "$" that is in following
> > parameter statements ?
> > Could anyone can help me?  Thank you.  Please also give me a e-mail.
> > 
> >       parameter(n$=160,   m$=60)
> >       parameter(n1$=n$+1, m1$=m$+1,     n2$=n$+2, m2$=m$+2)
> 
> In fortran, the dollar sign has no special meaning (it doesn't 
> imply pointers or references or elements of a structure or such).
> It is just a character that may appear in a name, as long as it is
> not the first character of the name. 

Not in any standard Fortran, it can't appear in names.  Some compilers
may allow it, but it isn't standard (which is why some systems use it
in system intrinsic names - that way they can't conflict with any legal
user-defined names).

In standard Fortran, the $ may appear in character contexts (i.e. strings)
and in comments.  It can also be used for the continuation character in
fixed form source (and was fairly popular as such, partly because it was
the character least likely to be mistaken for an actual part of the
statement.)

I don't recognize the sample code above as looking like any familliar
form, so I'd guess it probably is just using the $ as part of the
names - but this is not legal Fortran.

-- 
Richard Maine
maine@altair.dfrc.nasa.gov
Technical Details
Message-ID: <uehgc75mch.fsf@altair.dfrc.nasa.gov>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bcb513$6b602380$448b0585@goro.chem-eng.kyushu-u.ac.jp> <340819C3.4388@ensic.u-nancy.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1094ba,10cf0056f7127394
X-Google-Attributes: gid1094ba,public
X-Google-Thread: 167b2b,10cf0056f7127394
X-Google-Attributes: gid167b2b,public
From: Richard Maine <maine@altair.dfrc.nasa.gov>
Subject: Re: What is the "$"?
Date: 1997/08/30
Message-ID: <uehgc75mch.fsf@altair.dfrc.nasa.gov>
X-Deja-AN: 269119470
References: <01bcb513$6b602380$448b0585@goro.chem-eng.kyushu-u.ac.jp> <340819C3.4388@ensic.u-nancy.fr>
Organization: NASA Dryden
Newsgroups: comp.lang.fortran,fj.lang.fortran