comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: pointers and protected objects
Date: Fri, 17 Oct 2014 14:20:25 +0100
Date: 2014-10-17T14:20:25+01:00	[thread overview]
Message-ID: <ly61filtnq.fsf@pushface.org> (raw)
In-Reply-To: a1e35ccf-2ff5-4d37-af48-df135942add2@googlegroups.com

tonyg <tonythegair@gmail.com> writes:

> I can create pointers to protected objects, but how do I initialise
> the protected object as it is a limited type and the syntax
>
> po_ptr := new Po_Type'(Po_Type_Instance) would not be allowed

So far as I am aware, you can't; the PO needs to be self-initializing
(you can give the protected type discriminants, which may help)

  reply	other threads:[~2014-10-17 13:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17 12:51 pointers and protected objects tonyg
2014-10-17 13:20 ` Simon Wright [this message]
2014-10-17 14:51   ` tonyg
2014-10-17 15:36     ` Simon Wright
2014-10-17 17:21       ` AdaMagica
2014-10-17 15:42 ` Adam Beneschan
2014-10-23  8:54 ` tonyg
replies disabled

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