comp.lang.ada
 help / color / mirror / Atom feed
From: brown@gcc.uucp (The Raven)
Subject: Re: VAX Ada and CDD
Date: 17 Mar 91 14:34:17 GMT	[thread overview]
Message-ID: <617@gcc.uucp> (raw)
In-Reply-To: 2757@enea.se

In article <2757@enea.se>, sommar@enea.se (Erland Sommarskog) writes:

> can say this far is that DEC's SQL preprocessor makes severe
> hindrances to use use Ada for modular programming with a strong
> type concept.
> 
> If SQL gave a damn in doing type conversions (e.g. date => string)
> it wouldn't have understand the host declarations, lifting the
> requirment that all types referred to in SQL statements must be
> declared in the same source file. I realize that this is probably
> ANSI, but by giving the qualifier /STUPID one could take away this
> feature which is questionable in the first case in an Ada-style of
> programming where implicit conversions are a no-no.

True.  However, DEC's ada provides data type packages that allow you to
utilize all the VMS datatypes.  The SQL preprocessor, for portability
reasons doesn't utilize them - it only uses ansi data types.  If you want
to get around it, use the SQL Module Language.  In ADA, that works very
well - all you have to do is declare the package information to link the
sql module language obj file into your ACS library.  Since the latest
version of RDB/SQL provides for the declaration of record structures within
the module language for parameter passing, this method begins to look very
attractive from any language.

-- 
       +-------------------------------------------------------------+
       |   Mitchell W. Brown              Internet: brown@gcc.uucp   |
       | Grove City College TLC           Uucp: ...pitt!gcc!brown    |
       |  Grove City, PA 16127            (412) 458-2072             |
       +-------------------------------------------------------------+

      reply	other threads:[~1991-03-17 14:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-03-01 22:44 VAX Ada and CDD Erland Sommarskog
1991-03-06 22:57 ` Erland Sommarskog
1991-03-17 14:34   ` The Raven [this message]
replies disabled

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