From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Visibility issue Date: Mon, 14 Sep 2020 18:10:57 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <6096c490-7112-415e-978b-fd4c78f28501n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 14 Sep 2020 16:10:57 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="e8b900adb845bfc81b14928705b7d59c"; logging-data="31998"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9BHbWWYZeDxvBgrilCHs0Utcw+C8QlPg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cancel-Lock: sha1:VYcY907uLXeT2JhSJwzO55VQKkA= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:60139 List-Id: On 9/14/20 12:47 PM, Daniel wrote: > > Thank you for your answer. ¿ Do you know some idea or design pattern to achieve this? > I didn't write it in the example for simplicity, but the user have to set a callback function. > This callback function is triggered in the internal implementation hierarchy packages. Let me show you. the questions are inside comments: I'm not a big fan of callbacks or named access-to-subprogram types. A generic formal subprogram or an anonymous access-to-subprogram parameter is usually better. I'm still not clear what problem you're trying to solve. Designs are derived from problem statements, not from failed designs -- Jeff Carter "Since I strongly believe that overpopulation is by far the greatest problem in the world, this [Soylent Green] would be my only message movie." Charleton Heston 123