On 17 Jan 2015, at 20:10, Simon Wright <[email protected]> wrote:

> Below, function Create_Mutex reports this, pointing at the final semicolon:
> 
> mutexes.ads:6:53: syntax error in grammar state 215; unexpected Mutex_Handle, 
> expecting one of (default ACCESS)
> 
> (Create_Mutex_2 is fine)

And by “below” I mean this:

package Mutexes with Preelaborate is

   type Mutex (<>) is limited private;
   type Mutex_Handle is access all Mutex;

   function Create_Mutex return not null Mutex_Handle;

   function Create_Mutex_2 (P : Integer) return not null Mutex_Handle;

private

   type Mutex is null record;
   --  Of course it isn't really, but it is opaque to us.

end Mutexes;



_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to