Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jeremy@vsm.com.au
Subject: Re: Using X intrinsics from Fortran on a VAXstation 3100...
Date: 5 Sep 91 12:59:41 GMT	[thread overview]
Message-ID: <1991Sep5.222941.12@vsm.com.au> (raw)
In-Reply-To: 1077@mrcu

In article <1077@mrcu>, ajh@uk.co.gec-mrc (Andrew Haylett) writes:
>...
> DEC say that using X/DECwindows from Fortran would be tricky, and they would
> like to sell me their user interface language product (VUIT, I believe) - this
> seems more aimed at people who want to design forms, not for displaying simple
> data efficiently.

Quite right -- VUIT is primarily aimed at data entry forms generation.
However, it might still be useful for you, because it removes all the
drudgery of coding the basic application apearance.

As far as using FORTRAN goes, I can only offer my own experience as advice.
I'm not very fond of C, and decided to write a DECwindows application in
Pascal.  It was quite feasible, but it highlighted a major problem with the
VMS interface to DECwindows.  The usual MIT C calling convention has been
designed for C and the data structures are C-oriented.  In the VMS calling
convention, the data structures have been defined in SDL (DEC's
meta-language for such things) and then the "%include" type files for each
language are built by converting the SDL definitions to those appropriate
to the language.  Unfortunately this results in a bit of a mish-mash of
structures; some appear well thought out, others appear pretty bad.  The
Pascal definitions of procedures and functions were particularly poorly
done: in many cases, the routines have to be called using intermediate
variant records or type-casting to perform type conversion etc because the
routine demanded a particular type, which is not very compatible with the
way things are "done".  My pet gripe was the situation of passing callbacks
to X routines, because Pascal provides an easy way to pass a routine's
address to another routine, but the X routine was declared with bizarre
parameters which made such calls cumersome.

So, by all means try the FORTRAN, but be warned.  Being not as strongly
typed as Pascal, you may not have as many problems as I did.

        Jeremy Begg

  +----------------------------------------------------------+
  | VSM Software Services,  |  E-Mail:  jeremy@vsm.com.au    |
  | P.O.Box 801, Unley,     |   Phone:  +61 8 2388074 (pager)|
  | South Australia 5061    |                                |
  +----------------------------------------------------------+


      reply	other threads:[~1991-09-05 12:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-08-29  9:58 Using X intrinsics from Fortran on a VAXstation 3100 Andrew Haylett
1991-09-05 12:59 ` jeremy [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox