comp.lang.ada
 help / color / mirror / Atom feed
* Unusual "use" semantics
@ 1990-08-08 21:21 Fred Hosch
  1990-08-08 22:37 ` Jim Marks
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Fred Hosch @ 1990-08-08 21:21 UTC (permalink / raw)


My Ada compiler complains about the relation on the fourth line of the
following

	with TEXT_IO;
	procedure TEST is
	begin
	    if TEXT_IO.COL = 1 then
	        TEXT_IO.PUT_LINE ("COL is 1");
	    else
	        TEXT_IO.PUT_LINE ("COL is not 1");
	    end if;
	end TEST;

reporting: no operator visible for positive_count "=" universal integer.

If I add a context clause "use TEXT_IO;" it compiles successfully.

Is this a compiler bug or am I missing something in the LRM?

	Fred Hosch
	Applied Research Labs
	UT Austin
	fred@cs.utexas.edu
	fred@titan.tsd.arlut.utexas.edu

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

end of thread, other threads:[~1990-08-10 17:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1990-08-08 21:21 Unusual "use" semantics Fred Hosch
1990-08-08 22:37 ` Jim Marks
1990-08-09 12:45   ` Mike Wever
1990-08-09 15:59     ` Richard Pattis
1990-08-09  7:54 ` Rik Palo
1990-08-09 14:51 ` Allan Doyle
1990-08-09 16:15 ` Kurt Olender
1990-08-10 17:44   ` Alan Kaplan

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