comp.lang.ada
 help / color / mirror / Atom feed
From: "Frank J. Lhota" <NOSPAM.FrankLho@rcn.com>
Subject: Re: Hiding a type
Date: Sun, 7 Jul 2002 06:31:19 -0400
Date: 2002-07-07T10:31:11+00:00	[thread overview]
Message-ID: <ag959f$kuv$1@bob.news.rcn.net> (raw)
In-Reply-To: 3D275552.4090903@hotmail.com

> 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.






  reply	other threads:[~2002-07-07 10:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-06 17:17 Hiding a type Ryan Tarpine
2002-07-06 21:30 ` Pat Rogers
2002-07-06 18:16   ` Ryan Tarpine
2002-07-06 22:49     ` sk
2002-07-06 22:52     ` Frank J. Lhota
2002-07-06 20:38       ` Ryan Tarpine
2002-07-07 10:31         ` Frank J. Lhota [this message]
2002-07-07 11:20       ` Simon Wright
2002-07-07 13:58         ` Frank J. Lhota
2002-07-07 22:24           ` Ryan Tarpine
2002-07-07 17:15         ` Jeffrey Carter
2002-07-07 17:58           ` Simon Wright
2002-07-06 23:10     ` chris.danx
2002-07-06 20:21       ` Ryan Tarpine
2002-07-07  1:58         ` Jeffrey Carter
2002-07-08  7:20         ` Preben Randhol
2002-07-06 23:12       ` chris.danx
replies disabled

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