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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,85d4c2b5b3e9085f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-13 11:44:15 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: schwarza@gdls.com Newsgroups: comp.lang.ada Subject: Converting from Rational Ada to GNAT 3.13 Date: Tue, 13 Feb 2001 14:43:18 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: avanie.enst.fr 982093451 65315 137.194.161.2 (13 Feb 2001 19:44:11 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 13 Feb 2001 19:44:11 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Mailer: Lotus Notes Release 5.0.1a (Intl) 17 August 1999 X-MIMETrack: Serialize by Router on STL01/SRV/LS/GDYN(Release 5.0.5 |September 22, 2000) at 02/13/2001 02: 43:17 PM, Itemize by SMTP Server on STLHUB/SRV/LS/GDYN(Release 5.0.5 |September 22, 2000) at 02/13/2001 02: 43:18 PM, Serialize by Router on STLHUB/SRV/LS/GDYN(Release 5.0.5 |September 22, 2000) at 02/13/2001 02: 43:20 PM, Serialize complete at 02/13/2001 02: 43:20 PM Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:5232 Date: 2001-02-13T14:43:18-05:00 >> Arthur Schwarz: > e.g. The latest is the use of System.Runtime by Rational and it's > rejection by GNAT >> Rename! >> for Rat. : package xyxyxy renames System.Runtime; >> for GNAT : package xyxyxy renames zzzzzzzzzzzzzz; >> Tried it with the following results: >> In Rational package (/appl/.../rational.ss/)ada_krn_defs.1.ada >> commenting "with System.Runtime" >> and placing: "package System_Runtime renames System.Runtime;" >> into the package spec ("package Ada_Krn_Defs is") >> I remove the error messages (bravo and thanks). I was premature. Yesterday it worked. Today I'm bemused and need help. [1] I'm using Glide (public version) on a Solaris 2.+ system. Emacs: GNU Emacs 20.6.1 (sparc-sun-solaris2.5.1, X toolkit) [2] GNAT 3.13p ADP file looks like: /../lrm.ss/ -- which contains the file system.runtime.1.ada ADC file looks like: pragma Source_File_Name ( george, Body_File_Name => george.2.ada ) pragma Source_File_Name ( system.runtime, Spec_File_Name => System.Runtime.1.ada ) My code (george.2.ada) is: with System; procedure George is package System_Runtime renames System.Runtime; begin null; end George; with the following error: 4. package System_Runtime renames System.Runtime; | >>> "Runtime" not declared in "System" I don't know what happened between yesterday and today. It's probably obvious to the most casual observer, and I'm too close to the problem. Any ideas on what I could have done wrong? art