all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: About `catch' and `throw'
Date: Sat, 5 Jan 2013 00:57:12 +0000 (UTC)	[thread overview]
Message-ID: <kc7tp8$gb2$2@reader1.panix.com> (raw)
In-Reply-To: mailman.15880.1356116940.855.help-gnu-emacs@gnu.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]

In article <mailman.15880.1356116940.855.help-gnu-emacs@gnu.org>,
Pascal J. Bourguignon <pjb@informatimago.com> wrote:
>...

>The point is that catch/throw is a dynamic mechanism, not a lexical one.
>So it is bad to say "outside", since this has a spacial conotation.
>
>throw can be used WHEN catch is executing, or WHEN it is not.
>
>If you call (throw 'something result) WHEN there's a (catch 'something …)
>executing, then the control will pass from the throw expression to the
>catch expression, and the catch expression will return the result
>passed to throw.
>
>It's only a question of time, of WHEN catch is being evaluated and WHEN
>throw is evaluated.
>
Would you then say that when throw is triggered, it starts looking
up the stack (to older items) for a (matching?) catch, then collapses
the part of the stack it came from (where the throw was) up to
that point, fixes things up, and continues within the catch?

And if there is no catch, then it does <you fill in the answer>.


>
>
>
...., but the current implementation
>(even in emacs-24) is full of bugs.  

In your opinion, is this going to get fixed anytime soon?

Or has it been there for decades, and probably will remain
for decades to come?


Thanks,

David




  parent reply	other threads:[~2013-01-05  0:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-21 12:00 About `catch' and `throw' Xue Fuqiao
2012-12-21 17:03 ` Drew Adams
2012-12-22 17:50   ` Stefan Monnier
     [not found]   ` <mailman.15933.1356198906.855.help-gnu-emacs@gnu.org>
2012-12-22 20:33     ` Pascal J. Bourguignon
2012-12-21 19:08 ` Pascal J. Bourguignon
     [not found] ` <mailman.15880.1356116940.855.help-gnu-emacs@gnu.org>
2013-01-05  0:57   ` David Combs [this message]
2013-01-08 16:08     ` Stefan Monnier
     [not found]     ` <mailman.16939.1357661400.855.help-gnu-emacs@gnu.org>
2013-02-13  1:08       ` David Combs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='kc7tp8$gb2$2@reader1.panix.com' \
    --to=dkcombs@panix.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.