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=unavailable autolearn_force=no version=3.4.4 Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed1.swip.net!81.169.171.211.MISMATCH!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Bob Duff Newsgroups: comp.lang.ada Subject: Re: Fixed-point question Date: Sat, 27 Jun 2015 15:20:40 -0400 Organization: A noiseless patient Spider Message-ID: <87a8vlrm9j.fsf@theworld.com> References: <249bcd57-3074-4566-b8f2-03e6923bfbce@googlegroups.com> <6a104bde-67ea-48a5-a035-6be3f9235d42@googlegroups.com> <21e4185b-bc89-4940-b329-09863ad17344@googlegroups.com> <0320a865-5636-4ac6-81f7-ea56b761ce0d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="fb8695529b19d12f9fc16cf5bb865e22"; logging-data="4875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UXfOEjVcBxVZfyJDWX+a0" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:NrnDjqwSGbeGCy5V0ty2vBDcj+g= sha1:0QCatI2b/0fDTqLuelt5v7sDwiE= Xref: number.nntp.giganews.com comp.lang.ada:193806 Date: 2015-06-27T15:20:40-04:00 List-Id: "Jeffrey R. Carter" writes: >...I'm not sure why the type conversion for C1 results in using > the universal-real operator. Because of RM-8.6(29). Actually, it's the root_real operator; universal_real has no operators. Without the preference rule of 8.6(29), it would be ambiguous. As you said, it's calculating an exact rational number (at compile time), and converting that. - Bob