From: "DuckE" <nospam_steved94@home.com>
Subject: Re: Package Question [Newbie]
Date: Fri, 06 Jul 2001 13:54:58 GMT
Date: 2001-07-06T13:54:58+00:00 [thread overview]
Message-ID: <Sqj17.307218$p33.6131186@news1.sttls1.wa.home.com> (raw)
In-Reply-To: ssoakt067vi6drpdjatvp23qjqm94a7gak@4ax.com
"JM" <jmillard1@homey_remove_y.com> wrote in message
news:ssoakt067vi6drpdjatvp23qjqm94a7gak@4ax.com...
> Hi,
>
> I'm still very green wrt to Ada but after looking at few tutorials a
> have a couple of quick questions/observations. My background is C++ so
> I'm grasping for commonalities.
>
> 1. It looks as though basically the package is a class?
Not really. If you want to draw a parallel, I think a package is more like
a C++ namespace (although I don't know namespaces that well).
The "tagged type" in Ada is similar to C++ classes, but in Ada the "this"
pointer is explicit.
SteveD
> 2. And from a C++ point of view the package procedures are static
> functions that operate on references to the package? So basically
> 'this' doesn't exist?
>
> Thanks,
> Jason
next prev parent reply other threads:[~2001-07-06 13:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-06 7:06 Package Question [Newbie] JM
2001-07-06 10:59 ` Package Question [Newbie] (in C++ terms) Larry Kilgallen
2001-07-06 12:54 ` Package Question [Newbie] Marc A. Criley
2001-07-06 13:49 ` Ted Dennison
2001-07-06 13:54 ` DuckE [this message]
2001-07-06 14:13 ` Marin David Condic
2001-07-06 15:42 ` JM
2001-07-10 0:23 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox