comp.lang.ada
 help / color / mirror / Atom feed
From: thomas@cuivre.fr.eu.org (Thomas Quinot)
Subject: Re: generic formal primitive [dispatching] operation
Date: 2000/09/18
Date: 2000-09-18T00:00:00+00:00	[thread overview]
Message-ID: <8q5c2e$gkt$1@melusine.cuivre.fr.eu.org> (raw)
In-Reply-To: 39C5321E.805A73D1@free.fr

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

Dans comp.lang.ada, Damien Carbonne  �crit :

>I would like to create a generic package that has, as formal parameters,
>a tagged type and some primitive dispatching operations on that type.
>
>I have tried this:
>
>generic
>   type Root is abstract tagged private;
>   with procedure P1 (This : access Root);

P1 is not a primitive operation of Root, because in instances of your
package, P1 denotes a view of the actual parameter, and does not
declare a subprogram. The subprogram denoted by P1 is thus not
declared in the same declarative_region as type Root, and therefore
does not qualify to be a primitive operation of Root.

It is unclear to me what you are trying to achieve. Could you be more
specific about what you actually want to do?

Thomas.

-- 
    Thomas.Quinot@Cuivre.FR.EU.ORG




       reply	other threads:[~2000-09-18  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <39C5321E.805A73D1@free.fr>
2000-09-18  0:00 ` Thomas Quinot [this message]
2000-09-19  0:00   ` generic formal primitive [dispatching] operation Damien Carbonne
2000-09-18  0:00 ` Robert A Duff
2000-09-19  0:00   ` Damien Carbonne
2000-09-19  0:00     ` Robert A Duff
replies disabled

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