From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Dynamic modules: emacs-module.c and signaling errors Date: Tue, 24 Nov 2015 22:55:14 -0800 Organization: UCLA Computer Science Department Message-ID: <56555B52.3030703@cs.ucla.edu> References: <83k2p7xk13.fsf@gnu.org> <87wpt7p369.fsf@tromey.com> <83d1uzxgvw.fsf@gnu.org> <5654D7CF.90001@cs.ucla.edu> <87si3vox7j.fsf@tromey.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1448434536 30307 80.91.229.3 (25 Nov 2015 06:55:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 06:55:36 +0000 (UTC) Cc: tzz@lifelogs.com, emacs-devel@gnu.org, p.stephani2@gmail.com, aurelien.aptel+emacs@gmail.com, Eli Zaretskii , dancol@dancol.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 25 07:55:25 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1TzA-0001HU-N2 for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 07:55:24 +0100 Original-Received: from localhost ([::1]:43451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1TzC-0006UA-3U for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2015 01:55:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Tz8-0006U4-Ni for emacs-devel@gnu.org; Wed, 25 Nov 2015 01:55:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1Tz7-00033C-Q1 for emacs-devel@gnu.org; Wed, 25 Nov 2015 01:55:22 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Tz2-000317-4x; Wed, 25 Nov 2015 01:55:16 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B40F01606CC; Tue, 24 Nov 2015 22:55:15 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id man4SALkMgBY; Tue, 24 Nov 2015 22:55:15 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 18CB4160707; Tue, 24 Nov 2015 22:55:15 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nQFm85AFK8LF; Tue, 24 Nov 2015 22:55:15 -0800 (PST) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id E1C2C1606CC; Tue, 24 Nov 2015 22:55:14 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <87si3vox7j.fsf@tromey.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195206 Archived-At: Tom Tromey wrote: > The alternative is also error-prone though. It's very easy to forget > that some cleanup is needed; and the Emacs facilities here aren't really > all that easy to use either. We're talking about memory allocation here. If Emacs allocates the memory, the caller shouldn't need to clean up, as the Emacs garbage collector can do that. This should be less error-prone.