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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms Date: Wed, 15 May 2013 06:11:44 +0200 Organization: Ada @ Home Message-ID: References: <1bfhq7jo34xpi.p8n2vq6yjsea.dlg@40tude.net> <12gn9wvv1gwfk.10ikfju4rzmnj.dlg@40tude.net> NNTP-Posting-Host: ll7JxPeHtfBeoFl5nDW1Dg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Date: 2013-05-15T06:11:44+02:00 List-Id: Le Tue, 14 May 2013 21:35:55 +0200, Robert A Duff = a =C3=A9crit: > Yes. I think what's missing is an ability to initialize an object > after creating it (either by declaring it, or via "new"). My hobby > language has that. And it distinguishes syntactically between > initialization and assignment_statement. > [=E2=80=A6] > I think allowing to separate initialization from declaration > can solve that. Does your hobby language has static or runtime check to catch access to = = uninitialized variables? I don't see the point with deferred initialization, it seems to be an = object state finally (states, again). Either you can tell a variable was= = or was not initialized, and then it has a state and it is finally = initialized before you suppose it is, or else it can't tell the variable= = was not initialized because it really initialize nothing at the = declaration, and then it's perhaps unsafe. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity