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 X-Received: by 10.68.217.234 with SMTP id pb10mr315461pbc.2.1371688670231; Wed, 19 Jun 2013 17:37:50 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!nntp.giganews.com!ko2no25816022pbb.0!news-out.google.com!b2ni24797pby.1!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Elaboration order handling (Was: Bug in 'gnatmake') Date: Wed, 19 Jun 2013 20:37:49 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <7f33982d-3bcf-452e-a3b3-3a0a28505ff1@x20g2000vbe.googlegroups.com> <87r4g0g9c0.fsf@adaheads.sparre-andersen.dk> <87ip1bg4z2.fsf_-_@adaheads.sparre-andersen.dk> <51c217f6$0$6642$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1371688669 11546 192.74.137.71 (20 Jun 2013 00:37:49 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 20 Jun 2013 00:37:49 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:g5BhzZG17fAD2+ePpAe/d1OQWcM= X-Received-Bytes: 1959 Content-Type: text/plain; charset=us-ascii X-Original-Bytes: 2304 Xref: number.nntp.dca.giganews.com comp.lang.ada:181970 Date: 2013-06-19T20:37:49-04:00 List-Id: Georg Bauhaus writes: > On 19.06.13 14:38, Robert A Duff wrote: > >> Oh, and the fact that the whole model is overly restrictive. >> For example, it makes perfect sense to say: >> >> package Symbols is >> type Symbol is private; >> function Intern(S: String) return Symbol; >> Empty_Symbol: constant Symbol := Intern(""); -- Wrong! >> >> But that doesn't work in Ada. It works fine in my hobby >> language. ;-) > > Does your hobby language allow separate compilation? Yes. But I don't see how the compilation model ("separate compilation") is relevant to questions about the elaboration model, which is a run-time issue. - Bob