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-10-31 15:00:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!algonet!newspeer.clara.net!news.clara.net!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: Subject: Re: Integers and Mathematical Correctness MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Wed, 31 Oct 2001 22:55:59 -0000 NNTP-Posting-Host: 62.253.8.163 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1004568936 62.253.8.163 (Wed, 31 Oct 2001 22:55:36 GMT) NNTP-Posting-Date: Wed, 31 Oct 2001 22:55:36 GMT Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:15517 Date: 2001-10-31T22:55:59+00:00 List-Id: > > 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. So when a new integer type is declared, a group of operators are created for that type but their behaviour can be still be changed? Ok, I get it now! Thanks, Chris