Indeed. / / is not the extreme case of overloaded symbols; there are at
least 19 different uses of * in Fortran (some obsolescent but still
usable.)
On Thu, 14 Jun 2012, Anthony Stone wrote:
> Date: Thu, 14 Jun 2012 11:06:49 +0100
> From: Anthony Stone <[log in to unmask]>
> Reply-To: Fortran 90 List <[log in to unmask]>
> To: [log in to unmask]
> Subject: Re: iterate through several NAMELISTs
>
> This thread does make me wonder whether there might be a better way of
> carrying out the task without using namelists at all.
>
> Anthony
>
> On 14/06/12 10:19, Stefan Mauerberger wrote:
>>> nlist here is the name of the namelist. It could have been george, or
>>> stefan instead. The / / is just part of the namelist statement syntax -
>>> similar to how you specify names of common blocks.
>> Ok, I got this. So the / / has no overal meaning in Fortran and ocours in
>> diffenrent context - e.g. array assignement - which are not necessary
>> related.
>>
>>> A namelist name is not a variable - it does not have a type, for
>>> example. Its characteristics are more like those of a common block name.
>> Does this mean Fortran has no NAMELIST pointer which could point at a
>> NAMELIST?
>>
>> Best, Stefan
>
-- John Harper, School of Mathematics Statistics and Operations Research
Victoria University, PO Box 600, Wellington 6140, New Zealand
e-mail [log in to unmask] phone (+64)(4)463 5276 fax (+64)(4)463 5045
|