comp.lang.ada
 help / color / mirror / Atom feed
From: sjs@essex.ac.uk (Steve Sangwine)
Subject: Re: exit from a procedure
Date: Mon, 15 Jul 2002 13:14:26 +0100
Date: 2002-07-15T13:14:26+01:00	[thread overview]
Message-ID: <3d32bb2d.14256746@news.essex.ac.uk> (raw)
In-Reply-To: pan.2002.07.14.14.08.16.530459.1481@gmx.net

On Sun, 14 Jul 2002 22:16:28 +0100, Jan Prazak <janp9@gmx.net> wrote:

>1st answer:
>
>return; ?? In a procedure? I will try it.

The return (or RETURN) statement has been the absolutely standard way
of returning from a procedure in many  languages (e.g. FORTRAN 66,
BASIC) for decades. So why the ???? marks? Many assembler languages
also use return for exit from a subroutine (sometimes the mnemonic is
RTS - return from subroutine, sometimes it is RETURN or RET), but the
terminology is the same nevertheless. Maybe it would be a good idea to
learn a bit about programming history .....

(Note also that it is possible to exit from an Ada main program using
return, since an Ada main program is a procedure.)

Steve Sangwine




  reply	other threads:[~2002-07-15 12:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-14  0:14 exit from a procedure Jan Prazak
2002-07-13 21:45 ` chris.danx
2002-07-13 22:27 ` tmoran
2002-07-14 21:16   ` Jan Prazak
2002-07-15 12:14     ` Steve Sangwine [this message]
2002-07-15 19:10       ` Jan Prazak
2002-07-16  8:30         ` Gautier
2002-07-16 14:08           ` Jan Prazak
replies disabled

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