From: Simon Wright <simon@pushface.org>
Subject: Re: Having problems instantiating a child class with an extension aggregate
Date: Mon, 27 Jan 2020 17:47:49 +0000
Date: 2020-01-27T17:47:49+00:00 [thread overview]
Message-ID: <lyh80gaj0a.fsf@pushface.org> (raw)
In-Reply-To: 79386e8a-20cb-4bcb-a60a-531919ee6976@googlegroups.com
b.mcguinness747@gmail.com writes:
> result : APL_Data_Array_Pointer := new APL_Data_Array'(
> g_shape => new Dimensions'(right.g_shape.all),
> g_data => new Elements(right.g_data.all'Range)
> );
>
> This gives me an error message:
>
> apl_data_arrays.adb:180:36: type of aggregate has private ancestor "Controlled"
> apl_data_arrays.adb:180:36: must use extension aggregate
You need to include the private ancestor:
... new APL_Data_Array'(Controlled with ...
next prev parent reply other threads:[~2020-01-27 17:47 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 [this message]
2020-01-27 23:08 ` b.mcguinness747
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox