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-Thread: 109fba,cd8ed9115942852f X-Google-NewGroupId: yes X-Google-Thread: 103376,b92b95c9b5585075 X-Google-NewGroupId: yes X-Google-Attributes: gid4f1905883f,gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.c++,comp.lang.ada Subject: Re: Why use C++? Date: Sat, 13 Aug 2011 14:12:51 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <1fd0cc9b-859d-428e-b68a-11e34de84225@gz10g2000vbb.googlegroups.com> <9ag33sFmuaU1@mid.individual.net> <1d8wyhvpcmpkd.ggiui9vebmtl.dlg@40tude.net> <150vz10ihvb5a.1lysmewa1muz4$.dlg@40tude.net> <1q4c610mmuxn7$.1k6s78wa0r8fj.dlg@40tude.net> <1vn800hbyx8k4$.1lsveclj56197$.dlg@40tude.net> <1gu6ni1yb54k3$.4nbvfqqndl8m$.dlg@40tude.net> <9amuf2FdetU3@mid.individual.net> <9an4doFdeuU2@mid.individual.net> NNTP-Posting-Host: SptRn4/nB6/EZ1vi/h8RlA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:hYueJsWSYhec6201+q/JPHhWosE= Xref: g2news2.google.com comp.lang.c++:92690 comp.lang.ada:21575 Date: 2011-08-13T14:12:51+01:00 List-Id: Brian Drummond writes: > Incidentally, the values of "lower" and "upper" need not be determined > until runtime. The compiler can infer the best base type from whatever > constraints it finds on "lower" and "upper". I don't think that can be true? OK, the range can be postponed until runtime, but the base type of which the actual bounds are instances must be known (talking about a compiler here, not an interpreter).