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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ca85d557480cf473 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-07 03:32:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada Subject: Re: Hiding a type Date: Sun, 7 Jul 2002 06:31:19 -0400 Message-ID: References: <3D27263F.7070101@hotmail.com> <7kJV8.2438$gy3.1099236449@newssvr12.news.prodigy.com> <3D2733F4.8010304@hotmail.com> <3D275552.4090903@hotmail.com> Reply-To: "Frank J. Lhota" X-Trace: UmFuZG9tSVauIq2SVhorCmB8lJd3/ckDU27QO3j878g0OzRqWDZNrGnleE4FQpVh X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 7 Jul 2002 10:31:11 GMT X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal Xref: archiver1.google.com comp.lang.ada:26921 Date: 2002-07-07T10:31:11+00:00 List-Id: > The idea is that if I have 3 kinds of nodes (N1, N2, N3) with respective > access types, I can rename one to be the public type (Root). All > private functions will take N1_Ptrs, N2_Ptrs, etc. Only the public > functions should take a Root. This is beginning to sound like a case for using tagged types. Please look into it, you may be able to turn your "kind of ugly" hack into something beautiful.