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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,478da2f57395e4f6,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-06 07:42:37 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!e420r-sjo4.usenetserver.com!newsfeed.usenetserver.com!e420r-atl2.usenetserver.com.POSTED!not-for-mail From: "Anthony E. Glover" Newsgroups: comp.lang.ada Subject: Setters and Getters - Classwide or Dispatching? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Message-ID: X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Fri, 06 Jul 2001 10:38:32 EDT Organization: WebUseNet Corp. - "ReInventing The UseNet" Date: Fri, 6 Jul 2001 09:42:35 -0500 Xref: archiver1.google.com comp.lang.ada:9555 Date: 2001-07-06T09:42:35-05:00 List-Id: What is the best approach for declaring setters and getters for a class - classwide or primitive subprograms. Classwide would seem to be the best approach since in all likelihood no one would override the getting or setting of an attribute; however, this means that the operation is not inherited by subclasses and requires an additional 'with' and possible 'use' of the base class in order for the operation to be visible. Any suggestions? Also, is there any way to call a dispatching subprogram without adding withs and uses for all of the packages containing the subclasses. I'm refering to a call that is not part of the parent.child hiearchy. Thanks, Tony