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: Ada.Contain...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 8 Topic 5697 of 5881
Post > Topic >>

Re: Ada.Containers.Vectors Update_Element issue

by Adam Beneschan <adam@[EMAIL PROTECTED] > May 14, 2008 at 02:33 PM

On May 14, 2:25 pm, Matthew Heaney <mhea...@[EMAIL PROTECTED]
> wrote:
> On May 14, 11:17 am, Adam Beneschan <a...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > The declaration of Process is "not null access procedure".  This is an
> > *anonymous* access because the access type isn't given a name.  In Ada
> > 95, you would have to make this a named access type:
>
> No, that's not how you would do it in Ada95.  In Ada95, you would use
> a generic operation:
>
>   generic
>      with procedure Process (E : in out ET);
>   procedure Generic_Update (V : in out VT; I : IT);
>
> For reasons I don't understand, many developers convert Ada05
> anonymous access subprogram parameters to named access types when back-
> ****ting to Ada95, which is completely wrong, because then you wouldn't
> be able to nest the declaration of the process subprogram.

Well, you're right, but in my defense I wasn't trying to teach the OP
how to write an Ada.Containers.Vectors package in Ada 95---I was just
trying to explain what "anonymous access-subprogram types" are in Ada
2005.

                                    -- Adam
 




 8 Posts in Topic:
Ada.Containers.Vectors Update_Element issue
=?ISO-8859-1?Q?S=E9bastie  2008-05-13 17:26:40 
Re: Ada.Containers.Vectors Update_Element issue
Adam Beneschan <adam@[  2008-05-13 10:55:21 
Re: Ada.Containers.Vectors Update_Element issue
=?ISO-8859-1?Q?S=E9bastie  2008-05-14 15:01:00 
Re: Ada.Containers.Vectors Update_Element issue
Adam Beneschan <adam@[  2008-05-14 08:17:36 
Re: Ada.Containers.Vectors Update_Element issue
=?ISO-8859-1?Q?S=E9bastie  2008-05-14 18:21:30 
Re: Ada.Containers.Vectors Update_Element issue
Matthew Heaney <mheane  2008-05-14 14:25:21 
Re: Ada.Containers.Vectors Update_Element issue
Adam Beneschan <adam@[  2008-05-14 14:33:50 
Re: Ada.Containers.Vectors Update_Element issue
Ludovic Brenta <ludovi  2008-05-17 10:13:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Sep 7 7:55:59 CDT 2008.