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

call sync_memory vs call sync_memory()
Using CAF on a CRAY.

call sync_memory  -  gets undefined external

call sync_memory() - works

if a subroutine has no args, what diference does the empty set of parens
make.


Report this thread to moderator Post Follow-up to this message
Old Post
Gene Wagenbreth
09-28-04 09:12 PM


Re: call sync_memory vs call sync_memory()
Gene Wagenbreth <genew_nospam@isi.edu> writes:

> Using CAF on a CRAY.
>
> call sync_memory  -  gets undefined external
>
> call sync_memory() - works
>
> if a subroutine has no args, what diference does the empty set of
> parens make.

Absolutely none. The 2 forms are 100% equivalent in the standard (at
least as of f77. I don't recall and didn't bother to check for f66,
but I doubt your compiler is an f66 one).  I'd be at least somewhat
suspicious that something else is going on.  Otherwise, any difference
between these 2 forms would be a compiler bug.

Note that functions are different - they require the parens.

--
Richard Maine                       |  Good judgment comes from experience;
email: my first.last at org.domain  |  experience comes from bad judgment.
org: nasa, domain: gov              |        -- Mark Twain

Report this thread to moderator Post Follow-up to this message
Old Post
Richard E Maine
09-28-04 09:12 PM


Re: call sync_memory vs call sync_memory()

Gene Wagenbreth wrote:
> Using CAF on a CRAY.
>
> call sync_memory  -  gets undefined external
>
> call sync_memory() - works
>
> if a subroutine has no args, what diference does the empty set of parens
> make.

Is it possible that sync_memory is one of those swell things
that can be invoked as either a function or a subroutine?
Then, since the function requires the (), the compiler could
be .  If sync_memory can be invoked either way,
then using it is probably non-standrad and all bets are off.

Dick Hendrickson
>


Report this thread to moderator Post Follow-up to this message
Old Post
Dick Hendrickson
09-29-04 02:28 AM


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 05:30 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.