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: Full view of a private partial view cannot be a subtype Date: Tue, 5 Dec 2017 09:20:10 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <889a3aed-4e6b-49c8-8c1c-6f1478e8e077@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 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:49374 Date: 2017-12-05T09:20:10+01:00 List-Id: On 04/12/2017 22:48, Jeffrey R. Carter wrote: > With a composition approach you would at a minimum have a list of every > operation on every type right there with the type declaration. Overloaded with the same operations from other widget types. The fallacy of the argument comes straight from the point that the number of operation is just same. GPS is far worse in finding overloaded operations. If Button, Toggle_Button, Radio_Button etc were unrelated then in each event handler within a monstrous case over all possible widgets emitting the event, good luck finding their operations, cutting and pasting same code, you cannot reuse because types are unrelated. Yes, generics they will serve the final stroke to this insanity. > I have been looking at this for over 2 decades and have yet to see a > counterexample. If you think you know of one I'd like to see it. Maybe > I'm weird and most people have no problem understanding these things, > but I've seen plenty of other experienced people have similar > difficulties, so I doubt it. There are no more GUI frameworks based on overloading. Aggregation is used only for parent-child widget relationship. You are welcome to propose one. After all it is only the interface you have to design. All the implementation can be based on an existing framework with inheritance and overriding... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de