comp.lang.ada
 help / color / mirror / Atom feed
From: Marius Amado Alves <amado.alves@netcabo.pt>
To: comp.lang.ada@ada-france.org
Subject: Re: procedure and generic package
Date: Fri, 21 Nov 2003 18:39:24 +0000
Date: 2003-11-21T18:39:24+00:00	[thread overview]
Message-ID: <mailman.41.1069439975.3110.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <92bfc3dd.0311210955.1d65f893@posting.google.com>

On Fri, 2003-11-21 at 17:55, lolo27 wrote:
> please help me get it all right
> my question is i need to write an ado that implement the generic
> package.

What on Earth is an "ado"?

> in the ado i have a generic function that accept instant of the
> generic
> package.

Surely you don't want to pass an "instant", because it will be gone just
after you passed it ;-)

Now serioulsy, what I think is the fundamental piece of Ada knowledge
that you're lacking is: packages are not objects. So, you cannot pass
packages to subprograms via parameters. You can of course pass objects
associated with *any* package including your *instance* e.g.

Op (X : Package_Instance.Object)





  reply	other threads:[~2003-11-21 18:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20 20:34 procedure and generic package lolo27
2003-11-20 20:46 ` Georg Bauhaus
2003-11-20 20:55 ` David C. Hoos
2003-11-21 17:55   ` lolo27
2003-11-21 18:39     ` Marius Amado Alves [this message]
2003-11-21 18:48       ` Preben Randhol
2003-11-21 19:34         ` Marius Amado Alves
2003-11-21 19:56           ` Preben Randhol
replies disabled

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