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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7eaf9f2597de2259 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-12 01:36:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.com.nospam (John McCabe) Newsgroups: comp.lang.ada Subject: Re: on package naming, should the word "_pkg" be part of it? Date: Fri, 12 Oct 2001 08:35:44 GMT Organization: Emrad Ltd Message-ID: <3bc6aaef.2565789@news.demon.co.uk> References: NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1002875756 nnrp-12:25468 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:14364 Date: 2001-10-12T08:35:44+00:00 List-Id: On Thu, 11 Oct 2001 21:03:49 +0000 (UTC), Preben Randhol wrote: >On Thu, 11 Oct 2001 18:37:59 +0000 (GMT), M. A. Alves wrote: >> The Object.Method syntax can be implemented with preprocessing (please >> correct me if I am wrong on this). > >Wouldn't you lose some of the dispatching capabilities of Ada then? No reason why you should because you would be writing your own preprocessor :-) All you'd do (using a rough example of my suggestion earlier) would be to convert: class XXX is procedure DoSomething; procedure AClassOperation is classwide; end XXX; class YYY extends XXX is procedure DoSomething; Item_1 : Integer; ClassItem : Integer is classwide; -- Use classwide, not static!!! end YYY; into: package XXXs is type XXX is abstract tagged null record; procedure DoSomething (This : in XXX); procedure AClassOperation; end XXXs; package YYYs is type YYY is new XXX with record Item_1 : Integer; end record; ClassItem : Integer; end YYYs; You'd have to be concerned about context and use clauses though!