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-Thread: 103376,901038687c38f61c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsfeeds.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada References: <9175719.eWmeGlFrVu@linux1.krischik.com> Subject: Re: Idiom for a class and an object in Ada Date: Tue, 19 Oct 2004 11:55:52 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Message-ID: <41753625$0$74189$39cecf19@news.twtelecom.net> Organization: Time-Warner Telecom NNTP-Posting-Date: 19 Oct 2004 15:43:33 GMT NNTP-Posting-Host: f42b615c.news.twtelecom.net X-Trace: DXC=fBG9el:VU7CBZ`KRoIR8kQj6MMOj3YM9`=aHj_P<\9^\B`LdYZAA8S: "Martin Dowie" wrote in message news:cl39c4$k1j$1@hercules.btinternet.com... > > Personally, I would _never_ mix classes (or ADT's) and instances of them > within the same package or even in the same package hierarchy. I suggest you start using Ada95 to program in ... Ada95. Declare the type as limited and indefinite, and declare selector functions to return references to the statically-declared instances. Just like Text_IO.