From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Xref: utzoo comp.os.vms:36868 comp.lang.ada:4994 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!cuphub!edinboro!gcc!brown From: brown@gcc.uucp (The Raven) Newsgroups: comp.os.vms,comp.lang.ada Subject: Re: VAX Ada and CDD Message-ID: <617@gcc.uucp> Date: 17 Mar 91 14:34:17 GMT References: <2718@enea.se> <2757@enea.se> Organization: Grove City College, Grove City, PA List-Id: 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 | +-------------------------------------------------------------+