comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: "recursive" accept statement ??
Date: 1998/12/15
Date: 1998-12-15T00:00:00+00:00	[thread overview]
Message-ID: <m3soehb2rs.fsf@mheaney.ni.net> (raw)
In-Reply-To: 755sbg$80n$1@nnrp1.dejanews.com

dennison@telepath.com writes:

> In article <1998Dec15.122957@lri.fr>,
>   fv@lri.fr (Frederic Voisin) wrote:
> > I have trouble understanding the behavior of the following program (or
> > the rationale
> > for allowing its behavior, if correct):
> > -------------------------------------
> > with Ada.text_io ; use Ada.text_io ;
> >
>           Ada.text_io.put(str);         -- works fine
> >           Put(Str);                     -- behave like trace.Put(str) ????
> >
> 
> > If allowed, what is the rationale behind, since such construct is much
> > error-proned
> 
> Some would say that doing a "use" is error prone, and that was the source of
> your problem. :-)

Using use is not the problem.  The problem is not understanding Ada's
scope rules.

I use use all the time.






  reply	other threads:[~1998-12-15  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-15  0:00 "recursive" accept statement ?? Frederic Voisin
1998-12-15  0:00 ` Tucker Taft
1998-12-15  0:00 ` David C. Hoos
1998-12-15  0:00 ` Marc A. Criley
1998-12-15  0:00   ` Matthew Heaney
1998-12-15  0:00 ` dennison
1998-12-15  0:00   ` Matthew Heaney [this message]
1998-12-23  0:00 ` Robert A Duff
replies disabled

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