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,b61052ba3fdc8c26 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-31 14:45:54 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Integers and Mathematical Correctness Date: Wed, 31 Oct 2001 16:47:11 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1004568353 54116 137.194.161.2 (31 Oct 2001 22:45:53 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 31 Oct 2001 22:45:53 +0000 (UTC) Cc: To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 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: archiver1.google.com comp.lang.ada:15515 Date: 2001-10-31T16:47:11-06:00 ----- Original Message ----- From: "chris.danx" Newsgroups: comp.lang.ada To: Sent: Wednesday, October 31, 2001 4:16 PM Subject: Re: Integers and Mathematical Correctness > why does > > xxx : c_integer := c_integer(-3)/c_integer(2); > work then? Is it not the same? No. The "/" operator in the above line is the new operator for the c_integer type you declared, and it's not the same as any of the Standard."/" operators (i.e., for Integer, Float, etc.). A new type means exactly _that_ -- a _new_ type, with new operators.