From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Extending a third party tagged type while adding finalization Date: Mon, 4 Dec 2017 08:58:23 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <4db43571-7f86-4e73-8849-c41160927703@googlegroups.com> <6496a10f-c97e-4e42-b295-2478ad464b2f@googlegroups.com> <6106dfe6-c614-4fc1-aace-74bf8d7435e3@googlegroups.com> <102d4df8-d392-4100-9a37-c49705397e4e@googlegroups.com> <2240ea85-c247-4097-9877-24ce32a47123@googlegroups.com> <597f151d-a8e6-49f6-82af-c171feb94b32@googlegroups.com> NNTP-Posting-Host: MyFhHs417jM9AgzRpXn7yg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.2 Xref: reader02.eternal-september.org comp.lang.ada:49341 Date: 2017-12-04T08:58:23+01:00 List-Id: On 03/12/2017 22:53, Robert Eachus wrote: > I started thinking recently about how to do model, view, controller > "right" in Ada. My current conclusion is that we need a set of tools > that can take a model description (assume for now pure Ada) and (for > example) a set of tests, the tools would then generate the display for > the model and input scenarios/scripts that created the test conditions. > The original Ada model would get decorated (a lot) by the necessary > input procedures and display functions. You mean MVC using all static object? I don't think that is possible with or without tools. Then I don't see how finalization might be relevant here. MVC requires handling dependencies, best in the form of strong and weak references between the actors. That works perfectly well in Ada, actually. I don't remember any problems implementing MVC or binding to MVC implementations (e.g. from GTK). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de