comp.lang.ada
 help / color / mirror / Atom feed
From: Vadim Godunko <vgodunko@gmail.com>
Subject: Re: parent package referring to child
Date: Fri, 19 Oct 2007 12:45:44 -0000
Date: 2007-10-19T12:45:44+00:00	[thread overview]
Message-ID: <1192797944.983864.88460@t8g2000prg.googlegroups.com> (raw)
In-Reply-To: <fek7ll$t11$1@jacob-sparre.dk>

On Oct 11, 8:12 am, "Randy Brukardt" <ra...@rrsoftware.com> wrote:
>
> I think I was the originator of this idea; it allows you to make classwide
> calls for objects of types that you don't actually know about. (I'm not sure
> that it is as useful as I originally thought, but it certainly is a
> less-restrictive rule.)
>
Thanks Matthew and Randy for hint and explanation ;-)

This is really useful (at least for me)! In QtAda binding I have two
types Q_Char and Q_String. Its operations have several cross
references. For use its operations in prefixed view I need to make it
tagged. This is not raise any problem. But with out mentioned rules I
must use anonymous access types for parameters (this is bad, objects
always distinguishable through it values, no reference semantic is
needed) or define both types in same package (this is not so good,
both classes has large API).




  parent reply	other threads:[~2007-10-19 12:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-10  6:23 parent package referring to child eliben
2007-10-10  9:07 ` Georg Bauhaus
2007-10-10  9:24   ` eliben
2007-10-10 14:46     ` Adam Beneschan
2007-10-10 19:26   ` Simon Wright
2007-10-10 14:59 ` Matthew Heaney
2007-10-10 18:54   ` Vadim Godunko
2007-10-10 19:32     ` Matthew Heaney
2007-10-10 20:20       ` Adam Beneschan
2007-10-11  4:12         ` Randy Brukardt
2007-10-11 15:21           ` Adam Beneschan
2007-10-19 12:45           ` Vadim Godunko [this message]
2007-10-10 19:51   ` Matthew Heaney
2007-10-10 17:06 ` Jeffrey R. Carter
2007-10-10 19:17 ` anon
2007-10-11  9:45 ` george
2007-10-12  4:15   ` Jeffrey R. Carter
2007-10-12  9:51     ` Georg Bauhaus
replies disabled

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