From: Peter Hermann <ica2ph@iris16.csv.ica.uni-stuttgart.de>
Subject: casecrash: language lawyers: C'mon!
Date: 17 Jul 2001 12:58:31 GMT
Date: 2001-07-17T12:58:31+00:00 [thread overview]
Message-ID: <9j1cpn$bis$1@infosun2.rus.uni-stuttgart.de> (raw)
with ada.text_io;use ada.text_io;
procedure casecrash is
type record_type is (A,B,C,D,E,F,G,H,I,J,K,L,unknown);
type header is record
id_letter : record_type := unknown;
end record;
H : Header;
begin
case h.id_letter is
when A => put("a");
when H => put("h"); -- H conflict, name clash?
-- no context resolution?
when others => put("*");
end case;
end casecrash;--20010717ph+frehrmann
LRM:8.3(26), illegal homograph of H
LRM:8.6(28)
Why on earth should I accept this rule in this case?
Topic for Ada2005?
--
Peter Hermann Tel+49-711-685-3611 Fax3758 ica2ph@csv.ica.uni-stuttgart.de
Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen
http://www.csv.ica.uni-stuttgart.de/homes/ph/
Team Ada: "C'mon people let the world begin" (Paul McCartney)
next reply other threads:[~2001-07-17 12:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-17 12:58 Peter Hermann [this message]
2001-07-18 3:43 ` casecrash: language lawyers: C'mon! John R. Strohm
2001-07-18 7:18 ` Martin Dowie
2001-07-18 9:36 ` Philip Anderson
2001-07-19 21:39 ` Robert Dewar
2001-07-19 21:37 ` Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
2001-07-18 9:09 Peter Hermann
2001-07-18 20:57 ` Tucker Taft
2001-07-19 8:57 ` Peter Hermann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox