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,96a1028e223610ff X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: Matthew Heaney@MHEANEYIBMT43 Newsgroups: comp.lang.ada Subject: Re: Apostrophe question References: <1178051815.717834.317520@n76g2000hsh.googlegroups.com> From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 02 May 2007 02:48:19 GMT NNTP-Posting-Host: 24.149.57.125 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1178074099 24.149.57.125 (Tue, 01 May 2007 19:48:19 PDT) NNTP-Posting-Date: Tue, 01 May 2007 19:48:19 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:15447 Date: 2007-05-02T02:48:19+00:00 List-Id: David Smith writes: > Father : Person_Access := new Person'(Father_First_Name, > Father_Last_Name); You're comparing apples and oranges. You could have said: Father : Person_Access := new Person; -- not initialized and then it would be analogous to what you have below. The difference is whether the object you're constructing is explicitly initialized. > but not here: > > type Float_Array is array(Integer range <>) of Float; > type Float_Array_Access is access Float_Array; > V : Float_Array_Access := new Float_Array(1 .. 3); But you could have said: V : Float_Array_Access := new Float_Array'(1 .. 3 => 42.0); and it would be analogous to what you have above. > I'm sure there is a page about this somewhere, but I can't find it. > If someone could point me in the right direction, I'd appreciate it. The difference is whether you specify a value for the object explicitly.