comp.lang.ada
 help / color / mirror / Atom feed
From: b.mcguinness747@gmail.com
Subject: Re: Having problems instantiating a child class with an extension aggregate
Date: Mon, 27 Jan 2020 15:08:14 -0800 (PST)
Date: 2020-01-27T15:08:14-08:00	[thread overview]
Message-ID: <54bc353e-dc8a-464f-9d90-b2de7400759d@googlegroups.com> (raw)
In-Reply-To: <79386e8a-20cb-4bcb-a60a-531919ee6976@googlegroups.com>

Thanks very much for your help.  

I renamed the package to APL_Arrays.APL_Data_Arrays and changed the instantiation to

    result : APL_Data_Array_Pointer := new APL_Data_Array'(
               Ada.Finalization.Controlled with 
               g_shape => new Dimensions'(right.g_shape.all),
               g_data  => new Elements(right.g_data.all'Range)
             );

Now it compiles properly.


      parent reply	other threads:[~2020-01-27 23:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27  0:22 Having problems instantiating a child class with an extension aggregate b.mcguinness747
2020-01-27  1:04 ` Jere
2020-01-27 17:47 ` Simon Wright
2020-01-27 23:08 ` b.mcguinness747 [this message]
replies disabled

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