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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f0ecc62e58f0691 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: system."+" renaming using GNAT Date: 1999/01/12 Message-ID: <77gh05$59f@hobbes.crc.com>#1/1 X-Deja-AN: 431905655 References: <369bb27b.18027210@news.nacamar.de> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Coleman Research Corporation Newsgroups: comp.lang.ada Date: 1999-01-12T00:00:00+00:00 List-Id: Oliver Hilgendorf wrote in message <369bb27b.18027210@news.nacamar.de>... >The following statement > > function "+" (Left : in System.Address; Right : in Integer) >return System.Address renames system."+"; > >works fine using the Rational Ada compiler (for Solaris) . It doesn't >work with GNAT (for NT) since "+" is not defined in its package >system. > >How can I make it work? > The package System.Storage_Elements has the following function: function "+"(Left : Address; Right : Storage_Offset) return Address; If you change your code to read: function "+" (Left : in System.Address; Right : in Integer) return System.Address is use System.Storage_Elements; begin return Left + Storage_Offset (Right); end "+"; You should do just fine. David C. Hoos, Sr.