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,887bac6875d2db34 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Access idiom References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <6j5lj.309998$Fc.80333@attbi_s21> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1200939330 12.201.97.213 (Mon, 21 Jan 2008 18:15:30 GMT) NNTP-Posting-Date: Mon, 21 Jan 2008 18:15:30 GMT Organization: AT&T ASP.att.net Date: Mon, 21 Jan 2008 18:15:30 GMT Xref: g2news1.google.com comp.lang.ada:19507 Date: 2008-01-21T18:15:30+00:00 List-Id: Gene wrote: > > I'm at an impasse developing a graph data structure. There are many > node types derived from a "most general" one. Most of the node types > contain fields that are classwide access to child nodes. Various > primitive procedures operate on nodes, dispatching on unnamed node > access types. In many cases, the operations return such an access > child value. Other "identity" ops just return the dispatching > parameter as classwide access. There should be no need for public access types or values in such a data structure. Hiding them should make the package easier to use, easier to implement, and safer. -- Jeff Carter "Apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, the fresh water system, and public health, what have the Romans ever done for us?" Monty Python's Life of Brian 80