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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.211.136 with SMTP id nc8mr2373832pbc.6.1335428330202; Thu, 26 Apr 2012 01:18:50 -0700 (PDT) Path: r9ni99937pbh.0!nntp.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Oliver Kleinke Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Thu, 26 Apr 2012 10:18:48 +0200 Organization: A noiseless patient Spider Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> Mime-Version: 1.0 Injection-Date: Thu, 26 Apr 2012 08:18:49 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="r9vWwZGRqWnz4jaCL7CcWg"; logging-data="32710"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pPUGoelK8h54aT085PvDSy9vtDFbaQTw=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3 In-Reply-To: Cancel-Lock: sha1:/eu60+3DnteuqH3EJGDQRlTso7Q= X-Received-Bytes: 1999 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-04-26T10:18:48+02:00 List-Id: Am 25.04.2012 23:17, schrieb Yannick DuchĂȘne (Hibou57): > Le Wed, 25 Apr 2012 21:02:57 +0200, Oliver Kleinke > a Ă©crit: >>> Particularly interesting, since now Microsoft is popularizing >>> partial classes. >> >> partial classes are totally different from subunits. Partial classes >> are needed for Microsoft's automated code-generation. Partial classes >> are offensive in that they allow arbitrary extension of classes >> _anywhere_. > > What that mean? Kind of Aspect Programming? Partial classes allow you to split the class definition over multiple files. Subunits impose a certain restriction in that 1) every subunit has to be announced (with 'is separate') and 2) can be defined only once, with one body. Partial classes however, allow you to define any member functions and attributes you like in an arbitrary number of files.