Silverfrost Forums

Welcome to our forums

Structures and Records use in Powerstation Fortran code

12 Feb 2010 11:02 #5975

Hi, I've been converting my Microsoft Powerstation Fortran 77 program over under Plato. Been going fairly smooth until I hit this problem. I yielded to temptation (many years ago) and with Powerstation Fortran I used a non standard feature: Structures and Records. The Plato compiler doesn't like this. Is there a way for the compiler to accept this extension? Or do I need to do a rewrite? - Thanks for all your help.

Example of use:

structure /xyz/ real a real b end structure

record /xyz/mystuff mystuff.a = 1.0 mystuff.b = 2.0

13 Feb 2010 12:14 #5976

Re-write to: type xyz real a real b end type

type(xyz) mystuff mystuff%a = 1.0 mystuff%b = 2.0

You might consider obtaining a conversion program or write one yourself. The microsoft structure is the same as the DEC VAX Fortran

Please login to reply.