Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!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 Lines: 9 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: x330-a1.tempe.blueboxinc.net comp.lang.c++:8787 comp.lang.ada:3262 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).