From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Mon, 08 May 2006 13:39:15 -0400 Message-ID: References: <17491.34779.959316.484740@parhasard.net> <17495.932.70900.796282@parhasard.net> <17495.57895.90438.848865@parhasard.net> <17498.28361.392872.954484@parhasard.net> <17503.21672.395920.94783@parhasard.net> <17503.29740.778178.932671@parhasard.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1147110013 21769 80.91.229.2 (8 May 2006 17:40:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 May 2006 17:40:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 08 19:40:00 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fd9hs-0003UL-1H for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 19:39:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd9hr-00073L-Ip for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 13:39:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fd9hd-00071O-RU for emacs-devel@gnu.org; Mon, 08 May 2006 13:39:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fd9hc-00070p-25 for emacs-devel@gnu.org; Mon, 08 May 2006 13:39:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd9hb-00070l-SM for emacs-devel@gnu.org; Mon, 08 May 2006 13:39:23 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fd9iU-0007Gm-CH for emacs-devel@gnu.org; Mon, 08 May 2006 13:40:18 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id D0F4C2CF420; Mon, 8 May 2006 13:39:22 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 3BB5D452A; Mon, 8 May 2006 13:39:15 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 243F3716B9; Mon, 8 May 2006 13:39:15 -0400 (EDT) Original-To: Aidan Kehoe In-Reply-To: <17503.29740.778178.932671@parhasard.net> (Aidan Kehoe's message of "Mon, 8 May 2006 18:39:08 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54102 Archived-At: > Fread is intended to be called from Lisp (it=E2=80=99s a subr). Function= s called > from Lisp do not need to GCPRO their arguments, because the garbage > collector knows about the arguments, as it knows about all objects > allocated in Lisp. s/called/callable/ Are you sure we have such a convention? > C code that calls functions intended to be called from=C2=A0Lisp is optim= istic > at best if, without having checked, it relies on the assumption that that > the arguments to those functions will be GCPROed. As far as I know, the GCPRO convention for arguments is mostly the following: GCPRO args you pass to functions iff those functions can GC and you need to use the arg after the function returns. Stefan