From: "Xenos" <dont.spam.me@spamhate.com>
Subject: Renaming of enumeration constant
Date: Thu, 10 Jun 2004 11:37:44 -0400
Date: 2004-06-10T11:37:44-04:00 [thread overview]
Message-ID: <ca9v8l$5gb8@cui1.lmms.lmco.com> (raw)
Just a curiosity question:
What is the difference (advantages, etc.) of defining a function rename for
an enumeration constant over just creating a constant. Consider:
package X is
type E is (A, B, C);
end X;
with X;
package Y is
function A return X.E renames X.A;
end Y;
with X;
package Z is
A : constant X.E := X.A;
end Z;
Is the "A" in Y treated any different than the "A" in Z by the compiler, or
will both achieve the same results. Is one considered "better" (whatever
that means) than the other?
Thanks,
DrX
next reply other threads:[~2004-06-10 15:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-10 15:37 Xenos [this message]
2004-06-10 17:38 ` Renaming of enumeration constant Nick Roberts
2004-06-10 20:40 ` Xenos
2004-06-11 9:25 ` Jean-Pierre Rosen
2004-06-11 12:00 ` Nick Roberts
2004-06-11 12:49 ` Dmitry A. Kazakov
2004-06-12 4:34 ` Robert I. Eachus
2004-06-12 4:01 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox