From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Enumeration literals and their associated functions
Date: Thu, 20 Oct 2005 18:17:13 +0200
Date: 2005-10-20T18:17:02+02:00 [thread overview]
Message-ID: <1phcc66tuyzmx$.1m0iw4cayx178$.dlg@40tude.net> (raw)
In-Reply-To: dj8955$epg$1@sunnews.cern.ch
On Thu, 20 Oct 2005 16:21:26 +0200, Maciej Sobczak wrote:
> If instead "RED" above is considered to be a literal, then what's the
> sense of having an associated function at all?
Literal = function. So the following is legal:
type Color is (RED, GREEN, BLUE);
function Get_Red return Color renames RED;
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2005-10-20 16:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-20 14:21 Enumeration literals and their associated functions Maciej Sobczak
2005-10-20 15:35 ` Frank J. Lhota
2005-10-20 19:26 ` Simon Wright
2005-10-20 16:17 ` Dmitry A. Kazakov [this message]
2005-10-20 17:03 ` Niklas Holsti
2005-10-20 22:10 ` Randy Brukardt
2005-10-20 22:59 ` Robert A Duff
2005-10-21 3:10 ` Larry Kilgallen
2005-10-21 4:57 ` Jeffrey R. Carter
2005-11-30 6:07 ` adaworks
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox