Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: block data and namelist
Thomas Koenig wrote:
> Is it OK to have a namelist in block data, like this?
>
>       block data
>       common /foo/ a
>       namelist /foo_n/ a
>       data a /1.0/
>       end

Aside from the comments of others to the effect that it is
not allowed, what would it mean if it was allowed?  The
NAMELIST declaration identifies a set of variables that
can be used in namelist I/O transfers.  But you can't do
I/O in a block data.  And, the declaration isn't visible
outside of the block data.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies."   --  C. A. R. Hoare



Report this thread to moderator Post Follow-up to this message
Old Post
James Giles
05-14-05 09:05 PM


Re: block data and namelist
James Giles <jamesgiles@worldnet.att.net> wrote:
>Thomas Koenig wrote: 
>
>Aside from the comments of others to the effect that it is
>not allowed, what would it mean if it was allowed?

You could put

common /foo/ a
namelist /foo_n/ a

into an include file, and you could include this into a block data.

Report this thread to moderator Post Follow-up to this message
Old Post
Thomas Koenig
05-14-05 09:05 PM


Re: block data and namelist
Thomas Koenig wrote:
....
> You could put
>
>       common /foo/ a
>       namelist /foo_n/ a
>
> into an include file, and you could include this into a block data.

Yes, that was my theory about how your problem arose
to begin with.  I was just trying to explain the motives of
the language designers.  Why would you expect to be able
to make declarations that could not possibly have any meaning
in the context?

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies."   --  C. A. R. Hoare



Report this thread to moderator Post Follow-up to this message
Old Post
James Giles
05-14-05 09:05 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Fortran archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:58 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.