comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: Access idiom
Date: Mon, 21 Jan 2008 18:15:30 GMT
Date: 2008-01-21T18:15:30+00:00	[thread overview]
Message-ID: <6j5lj.309998$Fc.80333@attbi_s21> (raw)
In-Reply-To: <c41f12c9-9d7d-4ddf-8cb2-458c4195a4b0@m34g2000hsb.googlegroups.com>

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



  parent reply	other threads:[~2008-01-21 18:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-20 19:57 Access idiom Gene
2008-01-21  1:01 ` Ludovic Brenta
2008-01-21  4:16   ` Gene
2008-01-21 15:37     ` Robert A Duff
2008-01-22  4:11     ` Randy Brukardt
2008-01-22  4:11     ` Randy Brukardt
2008-01-21  9:05 ` Dmitry A. Kazakov
2008-01-21 18:15 ` Jeffrey R. Carter [this message]
2008-01-22  3:56   ` Gene
2008-01-22  5:10     ` Gene
2008-01-22  9:01     ` Dmitry A. Kazakov
2008-01-22 18:47     ` Jeffrey R. Carter
2008-01-22  4:15   ` Randy Brukardt
2008-01-22  4:15   ` Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
2008-01-21  7:12 Grein, Christoph (Fa. ESG)
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox