Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: Differences...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 5608 of 5827
Post > Topic >>

Re: Differences with/without .all

by "Randy Brukardt" <randy@[EMAIL PROTECTED] > Mar 17, 2008 at 03:42 PM

"Alex R. Mosteo" <devnull@[EMAIL PROTECTED]
> wrote in message
news:647ktoF2acjggU1@[EMAIL PROTECTED]
> Hello people,
>
> Gnat is giving me an error depending on if I use the .all abbreviation
or
not.
> I had the (unresearched) idea that there should be no differences
besides
the
> aesthetic one[*], so I'm not sure if gnat's wrong or I'm (guess what ;)
)
>
> One way or the other, I'd like to know the explanation. The particular
case
> that is giving me problems in GPL 2007 is:
>
> protected type Safe;
> type Safe_Access is access all Safe;
> function S return Safe_Access;
>
> S.Some_Procedure;
> --  This fails with
> --  Prefix of protected procedure or entry call must be variable
>
> S.all.Some_Procedure;
> --  This compiles and runs OK.
>
> Your judgment?

Looks like a bug to me. S.all is not a constant, and neither is
S(implicit.all). But S by itself is a constant. It's an easy mistake to
make, though, we used to have a very similar bug in Janus/Ada.

                         Randy.
 




 7 Posts in Topic:
Differences with/without .all
"Alex R. Mosteo"  2008-03-17 17:34:55 
Re: Differences with/without .all
"Randy Brukardt"  2008-03-17 15:42:30 
Re: Differences with/without .all
Ludovic Brenta <ludovi  2008-03-17 21:44:24 
Re: Differences with/without .all
Eric Hughes <eric.eh9@  2008-03-17 14:17:36 
Re: Differences with/without .all
Georg Bauhaus <rm.tsoh  2008-03-17 22:21:18 
Re: Differences with/without .all
Adam Beneschan <adam@[  2008-03-17 15:51:34 
Re: Differences with/without .all
Adam Beneschan <adam@[  2008-03-18 08:35:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 0:19:10 CDT 2008.