comp.lang.ada
 help / color / mirror / Atom feed
* Relational Operators
@ 2001-10-26 12:41 Gordon Cooke
  2001-10-26 13:57 ` Preben Randhol
  2001-10-26 14:10 ` Ted Dennison
  0 siblings, 2 replies; 9+ messages in thread
From: Gordon Cooke @ 2001-10-26 12:41 UTC (permalink / raw)


Is this code legal?

procedure Test is
   B : Boolean;
begin
   B := True = True = True;
end Test;


I thought this would be parsed as:

procedure Test is
   B : Boolean;
begin
   B := (True = True) = True;
end Test;


but GNAT 3.13p states:

     4.    B := True = True = True;
                            |
        >>> unexpected relational operator

 5 lines: 1 error


Gordon



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

end of thread, other threads:[~2001-10-30  9:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-26 12:41 Relational Operators Gordon Cooke
2001-10-26 13:57 ` Preben Randhol
2001-10-26 14:42   ` Ted Dennison
2001-10-26 14:10 ` Ted Dennison
2001-10-29  8:44   ` tgingold
2001-10-29 10:47     ` Martin Dowie
2001-10-29 13:41       ` Pascal Obry
2001-10-29 19:31       ` David Starner
2001-10-30  9:02         ` Martin Dowie

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