From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: George Neuner Newsgroups: gmane.emacs.help Subject: Re: The fundamental concept of continuations Date: Mon, 15 Oct 2007 00:17:40 -0400 Message-ID: <5cq5h3t7vk34famfl4od79vrlul32p2iss@4ax.com> References: <1191906949.179197.217470@57g2000hsv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192424607 16873 80.91.229.12 (15 Oct 2007 05:03:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2007 05:03:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 07:03:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IhI6l-0005uK-Q3 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Oct 2007 07:03:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhI6e-0005U8-OR for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Oct 2007 01:03:08 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 14 Oct 2007 23:17:42 -0500 Original-Newsgroups: comp.lang.scheme, comp.lang.lisp, comp.lang.functional, gnu.emacs.help, comp.lang.python X-Newsreader: Forte Agent 1.93/32.576 English (American) Original-Lines: 20 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 24.60.53.51 Original-X-Trace: sv3-plR7MfoA+SXqGwEOdX29o6Q5U+rUq6bgtmFvYJQyFEUR0fgrsBWh5K3OsF1e8hCDbNwSGs3HjYE9RjC!w0x9M/PjwmP09u0FwQ02iA9MzNGTFKvfz1TNQKMHAha8uy0jw5TDb2/1tyROsKAJaUQzxHt2nyEw!d7HkXtVUD5HER/+assEs9fBM Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.35 Original-Xref: shelby.stanford.edu comp.lang.scheme:74474 comp.lang.lisp:231111 comp.lang.functional:62689 gnu.emacs.help:152925 comp.lang.python:516276 X-Mailman-Approved-At: Mon, 15 Oct 2007 01:02:54 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48431 Archived-At: On Mon, 15 Oct 2007 11:56:39 +1300, Lawrence D'Oliveiro wrote: >In message , Barb Knox wrote: > >> Instead of function A returning to its caller, the >> caller provides an additional argument (the "continuation") which is a >> function B to be called by A with A's result(s). > >That's just a callback. I've been doing that in C code (and other >similar-level languages) for years. Callbacks are a form of continuation. However, general continuations such as those in Scheme, carry with them their execution context. This allows them to used directly for things like user-space threading. George -- for email reply remove "/" from address