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: 103376,a575249b5f286bfe X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.233.170 with SMTP id tx10mr2200848pbc.0.1334846180565; Thu, 19 Apr 2012 07:36:20 -0700 (PDT) Path: r9ni74513pbh.0!nntp.google.com!news1.google.com!news.glorb.com!solaris.cc.vt.edu!news.vt.edu!newsfeed-00.mathworks.com!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Garbage Collection ??? Date: Thu, 19 Apr 2012 10:36:19 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4f881910$0$2652$703f8584@news.kpn.nl> <5o86o2smbjpz.17l849bmku28v$.dlg@40tude.net> <4f888010$0$2641$703f8584@news.kpn.nl> <4f88ed79$0$2660$703f8584@news.kpn.nl> <6997433.1158.1334740025722.JavaMail.geo-discussion-forums@ynmm10> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1334846180 12461 192.74.137.71 (19 Apr 2012 14:36:20 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 19 Apr 2012 14:36:20 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:qBlupV69RHA8JS+2CQU/n8FJnLY= Content-Type: text/plain; charset=us-ascii Date: 2012-04-19T10:36:19-04:00 List-Id: Julian Leyh writes: > Am Samstag, 14. April 2012 20:21:17 UTC+2 schrieb Robert A Duff: >> In Ada 2012, you can say: >> >> type T_Ptr_Opt is access all T; >> subtype T_Ptr is T_Ptr_Opt with >> Dynamic_Predicate => T_Ptr /= null; > > In Ada 2005, you can already say: > > type T_Ptr_Opt is access all T; > subtype T_Ptr is not null T_Ptr_Opt; Right, but that's less useful, because it forces you to initialize your variables (e.g. record components) before you're ready to. - Bob