comp.lang.ada
 help / color / mirror / Atom feed
From: hreba <hreba@terra.com.br>
Subject: Re: Accessibility check failed
Date: Mon, 11 Aug 2014 13:45:36 -0300
Date: 2014-08-11T13:45:36-03:00	[thread overview]
Message-ID: <c4sa9iFm22vU1@mid.individual.net> (raw)
In-Reply-To: <ls9khk$4tj$1@dont-email.me>

On 08/11/2014 02:32 AM, Jeffrey Carter wrote:
> On 08/10/2014 07:12 PM, hreba wrote:
>>
>> in Proc generates a "accessibility check failed" error.
>
> Accessibility checks are a major can of worms and why you should always
> avoid visible access types if at all possible. This is aggravated by the
> use of anonymous access types.
>
>> So what is wrong?
>
> The simple answer is unnecessary use of a visible access type, in this
> case an anonymous access type.
>

Ok, the idea is to have an iteration where an abstract procedure is 
applied on each element of a list, class-wide. Together with the 
concrete extension of the list element a concrete iterator with a 
concrete method Proc shall be defined.

How do I change my program into proper Ada style?
-- 
Frank Hrebabetzky		+55 / 48 / 3235 1106
Florianopolis, Brazil


  reply	other threads:[~2014-08-11 16:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-11  2:12 Accessibility check failed hreba
2014-08-11  5:32 ` Jeffrey Carter
2014-08-11 16:45   ` hreba [this message]
2014-08-11 16:55     ` Jeffrey Carter
2014-08-12 11:57       ` hreba
2014-08-11 19:56 ` sbelmont700
2014-08-11 20:17   ` Jeffrey Carter
2014-08-11 20:28     ` sbelmont700
2014-08-11 21:14       ` Jeffrey Carter
  -- strict thread matches above, loose matches on Subject: below --
2015-11-29 18:03 accessibility " Serge Robyns
2015-11-29 18:37 ` Jeffrey R. Carter
2015-11-29 19:00   ` Serge Robyns
2015-11-29 22:32     ` Jeffrey R. Carter
2015-11-29 22:53       ` Serge Robyns
2015-11-30  2:04         ` Jeffrey R. Carter
2015-11-30 23:22         ` Randy Brukardt
2015-12-01  9:38           ` Serge Robyns
2015-11-29 19:15 ` Dmitry A. Kazakov
2015-11-29 22:40 ` Serge Robyns
2015-12-01 20:17 ` sbelmont700
replies disabled

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