forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sparge, and is Clearwin+ standard-conforming Fortran

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Thu Jan 20, 2011 5:33 pm    Post subject: Sparge, and is Clearwin+ standard-conforming Fortran Reply with quote

I was wrong: it isn't. @ is not in the character set (except in character constants) for other compilers.

Whether or not WINIO@'s variable number of parameters is OK, WINIO@'s @ isn't OK. Some of the interfaces in the insert files may just not be standards-conforming, and certainly it is possible to use non-standard INCLUDE syntax in FTN95. None of the compiler directives, including WINAPP, will compile with lesser compilers.

So, Clearwin+ isn't (standard-conforming) Fortran - and you were right - but by heck it looks like it is!

Eddie
Back to top
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 444
Location: Manchester

PostPosted: Fri Jan 21, 2011 10:02 am    Post subject: Reply with quote

I suspect that is why we use '@' (and $) on the end of routine names -- so they are a) not going to clash and b) easy to spot.
Back to top
View user's profile Send private message Visit poster's website
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Fri Jan 21, 2011 7:38 pm    Post subject: Reply with quote

Robert,

How does FTN95 know that @ is admissable sometimes? More to the point, why do we need WINAPP - since FTN95 will always know if it has seen WINIO@ or another of the @ routines that don't work other than with WINAPP, and it could presumably put a flag in the OBJ code, so that SLINK didn't need to look too hard afterwards ... just a thought.

Oh, and the RESOURCES section (if there is one) won't pass a generic compiler.

Eddie
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Sat Jan 22, 2011 11:15 am    Post subject: Reply with quote

Some but only a minority of @ subroutines are hard coded into the compiler.

WINAPP attaches the Windows (i.e. not Console) attribute to the executable and, optionally, allows the declaration of a resource script. It can be used without winio@, for example with standard WRITE/PRINT. At one time it also used to work with READ but I have not tried that for a while. In other words is converts any Fortran program from a console app to a Windows app.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group