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: Ada Successor Language Date: Tue, 26 Jun 2018 16:47:37 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <5e86db65-84b9-4b5b-9aea-427a658b5ae7@googlegroups.com> <776f3645-ed0c-4118-9b4d-21660e3bba4b@googlegroups.com> <87602fbu2g.fsf@nightsong.com> <87po0mziqt.fsf@nightsong.com> <87fu1izfgs.fsf@nightsong.com> <878t75nwad.fsf@adaheads.home> <15b6f89f-997b-45ac-86b4-2e614bb624c2@googlegroups.com> <1c1c1144-3727-4587-80bd-ef4af54f9e05@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: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.3 Xref: reader02.eternal-september.org comp.lang.ada:53331 Date: 2018-06-26T16:47:37+02:00 List-Id: On 2018-06-26 16:42, Dan'l Miller wrote: > On Tuesday, June 26, 2018 at 9:17:02 AM UTC-5, Dmitry A. Kazakov wrote: >> On 2018-06-26 15:59, Dan'l Miller wrote: >>> On Tuesday, June 26, 2018 at 2:44:26 AM UTC-5, Dmitry A. Kazakov wrote: >>>> On 2018-06-25 18:21, Dan'l Miller wrote: >>>>> On Monday, June 25, 2018 at 10:19:15 AM UTC-5, Dmitry A. Kazakov wrote: >>>>>> On 2018-06-25 16:44, J-P. Rosen wrote: >>>>>>> Le 25/06/2018 à 16:21, Dmitry A. Kazakov a écrit : >>>>>> >>>>>>>> Ada could allow T'Class for untagged T. T'Class would be an indefinite >>>>>>>> type with values consisting of the actual type's tag and its value. When >>>>>>>> T is by-value type, you pass T'Class to a subprogram as tag + value. >>>>>>>> When T is by-reference type, you pass tag + reference. >>>>>>>> >>>>>>>> Upon dispatch, you strip the tag from the value or reference before >>>>>>>> passing value/reference down. >>>>>>> >>>>>>> It was a requirement of Ada95 that OOP be strictly contained, and that >>>>>>> the same typing system as Ada83 be kept for those who don't want OOP. >>>>>> >>>>>> Don't want OO, don't declare T'Class objects. Where is a problem? >>>>> >>>>> The problem is that you just proposed 'Class for non-OO semantics. Your proposal violates the Principal of Least Surprise. >>>> >>>> Remember, Ada is a strongly typed language, T'Class is not T, there is >>>> no way it could break or change anything in T. >>> >>> Quit putting non sequitur words in my mouth. I never said that it would break anything in T. I said that it would break T'Class in •some• situations of the untagged extended records, >> >> Such situations are strictly non-existent for neither T'Class nor record >> extensions are presently allowed for non-tagged types. > > And yet, you propose them. Proposing something that is already there would be kind of pointless... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de