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,ebbca47c76670bb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-01 04:14:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!intgwlon.nntp.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: Reemergence of predefined equality operator... References: User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X) Message-ID: Date: Thu, 01 Aug 2002 11:14:38 GMT NNTP-Posting-Host: 144.132.42.132 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1028200478 144.132.42.132 (Thu, 01 Aug 2002 21:14:38 EST) NNTP-Posting-Date: Thu, 01 Aug 2002 21:14:38 EST Organization: BigPond Internet Services (http://www.bigpond.net.au) Xref: archiver1.google.com comp.lang.ada:27560 Date: 2002-08-01T11:14:38+00:00 List-Id: Robert A Duff wrote: > For "=", this seems "obviously" wrong. But as I pointed out elsewhere, > the situation for other operators (eg, "mod"), is not so obvious. > Even if the language were changed, or even if Text_IO.Integer_IO took > "mod" as an "is <>" parameter as above, it's not clear (to me) what the > right answer is. Wouldn't it be appropriate for Text_IO.Integer_IO, if it wants to be sure of the mod operator it is using, to simply specify it? E.g. procedure put (item : natural) is zero_char : constant := character'pos ('0'); begin if item < 10 then put (character'val (item + zero_char)); else put (item / 10); put (Standard."mod" (item, 10)); end if; end; That way if a new mod was imported via a generic parameter it simply wouldn't be used in this case. Dale