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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b61052ba3fdc8c26 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-01 11:15:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!cyclone1.gnilink.net!washdc3-snf1!washdc3-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3BE19B22.29CEF7BB@Raytheon.com> From: Mark Johnson X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Integers and Mathematical Correctness References: <3BE07058.A45058D3@Raytheon.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 01 Nov 2001 12:57:38 -0600 NNTP-Posting-Host: 192.27.48.44 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1004641090 192.27.48.44 (Thu, 01 Nov 2001 12:58:10 CST) NNTP-Posting-Date: Thu, 01 Nov 2001 12:58:10 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:15569 Date: 2001-11-01T12:57:38-06:00 List-Id: Mark Johnson wrote: > > Why the use of Standard."/" does not work I will leave to other language > lawyers. I just figured this part out. The following example compiles cleanly with GNAT on Linux... procedure C is type C_Integer is new Integer; X, Y, Z : C_Integer; begin Z := X/Y; Z := "/"(X, Y); Z := C."/"(X, Y); end C; You can't use Standard."/" because as others have pointed out - that is for Integers (and other Standard types) only. C_Integers are defined in procedure C (in this example), so the proper prefix to refer to the function "/" is C, not Standard. --Mark