comp.lang.ada
 help / color / mirror / Atom feed
* Ambiguous character literals
@ 1999-04-24  0:00 adam
  1999-04-26  0:00 ` Tucker Taft
  1999-04-28  0:00 ` Robert Dewar
  0 siblings, 2 replies; 3+ messages in thread
From: adam @ 1999-04-24  0:00 UTC (permalink / raw)





I think this program should fail to compile, but GNAT 3.10 doesn't give
any error messages.  Am I interpreting the RM correctly?  Or is there
some nuance I'm missing in the RM that causes STANDARD.CHARACTER to be
preferred in a case like this?

Also, I think the program should still be illegal if one or both of the
enumeration type declarations is deleted (since "<" is still visible for
CHARACTER and WIDE_CHARACTER).  Is my understanding correct?

				-- thanks, Adam

procedure test is
    type etype is ('d', 'c', 'b', 'a');
    type etype2 is ('a', 'b', 'c', 'd');
    b : boolean;
begin
    b := ('d' < 'b');
end test;

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-04-28  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-24  0:00 Ambiguous character literals adam
1999-04-26  0:00 ` Tucker Taft
1999-04-28  0:00 ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox