comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Heterogenous_Array_Test
Date: Tue, 14 Aug 2001 20:33:08 GMT
Date: 2001-08-14T20:33:08+00:00	[thread overview]
Message-ID: <8Wfe7.1349$Wm3.1037702@news1.rdc1.sfba.home.com> (raw)
In-Reply-To: mailman.997818026.5462.comp.lang.ada@ada.eu.org

My understanding is that Child'(...) in
   Child'(Item(2).all).Child_Component := 22;
means "BTW, compiler, if you're confused, Item(2).all is a Child"
whereas Child(...) in
   Child (Item(2).all).Child_Component := 22;
means "compiler, convert Item(2).all to a Child (leaving it alone if
it's already one)"
so
   Child (Item(2).all).Child_Component := 22;
   Item(2) := new Root;
   Child (Item(2).all).Child_Component := 33;  -- should raise exception



  reply	other threads:[~2001-08-14 20:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.33.0108141912510.32177-100000@lagoa.niaad.liacc.up.pt>
2001-08-14 19:40 ` Heterogenous_Array_Test David C. Hoos
2001-08-14 20:33   ` tmoran [this message]
2001-08-16 19:06 ` Heterogenous_Array_Test M. A. Alves
2001-08-14 20:12 Heterogenous_Array_Test M. A. Alves
2001-08-14 20:43 ` Heterogenous_Array_Test James Rogers
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox