From: "Matthew Heaney" <mheaney@on2.com>
Subject: Re: Package Instances???
Date: Thu, 21 Feb 2002 10:30:31 -0500
Date: 2002-02-21T10:30:31-05:00 [thread overview]
Message-ID: <u7a4at5a5umm2d@corp.supernews.com> (raw)
In-Reply-To: 3C7487D6.5060603@mail.com
"Hyman Rosen" <hyrosen@mail.com> wrote in message
news:3C7487D6.5060603@mail.com...
> But my purpose isn't to implement a type, it's to find a C++ analogue
> for Ada packages. C++ namespaces are useless for anything except what
> the name implies, namely establishing a namespace.
Well, if you don't need a type, then you really do want an Ada package.
Clearly the C++ analogue is a namespace.
package P is
procedure Op;
I : Integer;
end P;
namespace N
{
void f();
extern int i;
}
In Ada, you have P.Op and P.I, and in C++ you have N::f() and N::i. What's
the problem?
(Note that in C++ you could use a class, and declare f() and i as static
members, but you said you didn't want a type.)
next prev parent reply other threads:[~2002-02-21 15:30 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-13 21:02 Package Instances??? Yates
2002-02-13 21:12 ` Larry Kilgallen
2002-02-13 21:21 ` chris.danx
2002-02-13 21:46 ` Marin David Condic
2002-02-14 17:59 ` Hyman Rosen
2002-02-15 13:11 ` Marc A. Criley
2002-02-15 19:20 ` Simon Wright
2002-02-19 14:08 ` Marin David Condic
2002-02-20 1:37 ` Matthew Heaney
2002-02-20 16:56 ` Marin David Condic
2002-02-21 15:33 ` Matthew Heaney
2002-02-20 19:16 ` Hyman Rosen
2002-02-20 22:31 ` Pat Rogers
2002-02-20 23:44 ` Matthew Heaney
2002-02-21 5:35 ` Hyman Rosen
2002-02-21 14:05 ` Marin David Condic
2002-02-22 16:49 ` Hyman Rosen
2002-02-22 17:22 ` Marin David Condic
2002-02-24 7:39 ` Hyman Rosen
2002-02-25 15:38 ` Matthew Heaney
2002-02-22 18:10 ` Matthew Heaney
2002-02-22 20:55 ` Hyman Rosen
2002-02-22 21:37 ` Matthew Heaney
2002-02-24 7:36 ` Hyman Rosen
2002-02-25 15:27 ` Matthew Heaney
2002-02-21 15:30 ` Matthew Heaney [this message]
2002-02-21 18:05 ` Hyman Rosen
2002-02-13 21:50 ` Eric Merritt
2002-02-14 15:08 ` Yates
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox