Path: csiph.com!usenet.pasdenom.info!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end From: Tomasz Kowaltowski Newsgroups: comp.compilers Subject: Re: Is multi-level function return possible? Date: Wed, 12 Mar 2014 08:36:03 -0300 Organization: Compilers Central Lines: 13 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <14-03-026@comp.compilers> Reply-To: tkowaltowski@gmail.com NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: miucha.iecc.com 1394679980 34497 64.57.183.58 (13 Mar 2014 03:06:20 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Thu, 13 Mar 2014 03:06:20 +0000 (UTC) Keywords: code Posted-Date: 12 Mar 2014 23:06:20 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com X-Received-Bytes: 1584 X-Received-Body-CRC: 3545640678 Xref: csiph.com comp.compilers:1148 > Is this a doable thing for a Pascal-like language that is meant to be > compiled? I have a multi-level break which works within a procedure, but the > return across procedure boundaries seems to add a lot of complications. This problem is somewhat simpler than the the implementation of unrestricted procedures or functions passed as parameters and their returns, which also exist in Pascal, and it can use a similar solution. See for instance: Parameter Passing Mechanisms and Run Time Data Structures Software -- Practice and Experience 11,7 (757-765), 1981 Tomasz