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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,546b2e2a44f83809 X-Google-Attributes: gid103376,public From: guerby@gnat.com (Laurent Guerby) Subject: Re: Gnat For use at Question Date: 1996/07/12 Message-ID: #1/1 X-Deja-AN: 168119324 sender: guerby@schonberg.cs.nyu.edu references: <4s2eb5$qt6@masala.cc.uh.edu> organization: New York University reply-to: guerby@gnat.com newsgroups: comp.lang.ada Date: 1996-07-12T00:00:00+00:00 List-Id: [...] Spasmo> That's exactly what I got. The thing is I don't have the RM so Spasmo> I was unable to look up the specifics. Where did you get GNAT from? I guess that most Ada CD have an hypertext version of the RM lying somewhere (and may be even of the Rationale, Ada Quality & Style, Ada in Action, FAQs, Lovelace and other tutorials). If not, I hope the next releases will pick all this free high quality material. Of course if you have web access, just have a look at: http://lglwww.epfl.ch/Ada [...] Spasmo> : Some_Array : String(1..4000); Spasmo> : for Some_Array'Address use Some_Array_Address; Spasmo> Is the 'Address necessary? Every book I have doesn't mention Spasmo> it but just says for Some_Array. Hum it's the Ada 95 syntax and I guess your books all are Ada 83 books. The Ada 83 syntax is: for Some_Array use at Some_Array_Address; ^^ The Ada 95 syntax is more uniform, clauses follow the general syntax: for Entity'Attribute use Value; [...] Spasmo> Hmmmm ok, well here's a question about To_Address. Since PC's Spasmo> use segment, base addressing, is there an overload of Spasmo> To_Address that accepts both a segment and base, or is it up Spasmo> to us to "massage" the number into the proper format for Spasmo> To_Address? Are there any functions that do this "massaging" Spasmo> for us? Thanks for the help. This is a question for a DJGPP master I guess. If you manage to make it work with GCC/C, it should work the same way with GCC/Ada. -- Laurent Guerby , Team Ada. "Use the Source, Luke. The Source will be with you, always (GPL)."