From: Jean-Pierre Rosen <rosen@EMAIL.ENST.FR>
Subject: I just found that funny...
Date: 1996/04/05
Date: 1996-04-05T00:00:00+00:00 [thread overview]
Message-ID: <199604051600.SAA07609@email.enst.fr> (raw)
Recently, I needed a function that, given a month, would return the last day
of the month. Since I like things that look nice in named notation, I
(inadvertantly) wrote the spec as:
function Last_Day (Of : Months) return Date;
GNAT appropriately complained that "Of is a reserved word that cannot be used
as an identifier". So the next thing that sprung to my mind was:
function Last_Day (In : Months) return Date;
Nooooooo ! Think of something else...
function Last_Day (For : Months) return Date;
Arghhhhhhh.... I ended up with:
function Last_Day (Of_Month : Months) return Date;
:-)
+------------------------------------o-------------------------------------+
| P-mail: | E-mail: rosen@enst.fr |
| ADALOG - 27 avenue de Verdun | Tel: +33 1 46 45 51 12 |
| 92170 Vanves - FRANCE | Fax: +33 1 46 45 52 49 |
+------------------------------------o-------------------------------------+
next reply other threads:[~1996-04-05 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-05 0:00 Jean-Pierre Rosen [this message]
1996-04-06 0:00 ` I just found that funny Robert Dewar
1996-04-06 0:00 ` Michael Feldman
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox