comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: procedures and return
Date: Mon, 16 Aug 2004 09:50:23 +0000 (UTC)
Date: 2004-08-16T09:50:23+00:00	[thread overview]
Message-ID: <cfq00v$dpn$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: 412052f5$1@dnews.tpgi.com.au

zork <zork@nospam.com> wrote:
: 
: procedure my_procedure (...)
                                 is
: begin
:    if <some_condition> then
:        put("inside if-statement);
:        new_line;
:        return;
:    end if;
:    put ("outside if-statement");
: end my_procedure;

There are only two Boolean values. You can try to write
a procedure like the above with very little changes so it can
be compiled as a main program. Use True for one compilation,
False for another, and see what happens.

Anything but return on "return" should be very surprising.
Are you sure that "outside if-statement" is uttered by my_procedure
and not from somewhere else?

Georg



  parent reply	other threads:[~2004-08-16  9:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16  6:23 procedures and return zork
2004-08-16  6:48 ` Puckdropper
2004-08-16  7:10 ` zork
2004-08-16  9:50 ` Georg Bauhaus [this message]
2004-08-16 11:03 ` Gautier
replies disabled

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