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 16:36:54 +0100
Date: 2014-10-17T16:36:54+01:00	[thread overview]
Message-ID: <lyvbnik8rt.fsf@pushface.org> (raw)
In-Reply-To: 8218ae29-e395-4843-87ea-1c11b58a7f0c@googlegroups.com

tonyg <tonythegair@gmail.com> writes:

> do you know if I separate the body of the protected object in a
> different compilation file and what how I name the file in gnat ?

Yes.

--  pak.ads
package pak is
   protected type p is
      ...
   end p;
end pak;

--  pak.adb
package body pak is
   protected body p is separate;
end pak;

--  pak-p.adb
separate (pak)
protected body p is
   ...
end p;

  reply	other threads:[~2014-10-17 15:36 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
2014-10-17 14:51   ` tonyg
2014-10-17 15:36     ` Simon Wright [this message]
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