From: Victor Porton <porton@narod.ru>
Subject: A non-primitive operation
Date: Tue, 14 Nov 2017 21:44:41 +0200
Date: 2017-11-14T21:44:41+02:00 [thread overview]
Message-ID: <oufm3f$1s0q$1@gioia.aioe.org> (raw)
I want a function F which returns a tagged type NOT to be considered as a
primitive operation of T.
Is there any other way for this, except to declare F in a separate package?
What about creating F in a subpackage? This way it could have access to full
view of T if T is private (an awful hack?):
package X is
type T is tagged private;
package Sub is
function F return T;
end Sub;
end X;
Are there other ways?
--
Victor Porton - http://portonvictor.org
next reply other threads:[~2017-11-14 19:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-14 19:44 Victor Porton [this message]
2017-11-14 21:56 ` A non-primitive operation Dmitry A. Kazakov
2017-11-15 22:37 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox