[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamic modules: emacs-module.c and signaling errors
From: |
Tom Tromey |
Subject: |
Re: Dynamic modules: emacs-module.c and signaling errors |
Date: |
Wed, 25 Nov 2015 11:10:06 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
>>>>> "Paul" == Paul Eggert <address@hidden> writes:
Paul> 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.
Paul> We're talking about memory allocation here. If Emacs allocates the
Paul> memory, the caller shouldn't need to clean up, as the Emacs garbage
Paul> collector can do that. This should be less error-prone.
The particular problem Eli mentioned was not memory allocation, it was a
type-checking error. In particular see how module_extract_integer calls
module_wrong_type.
Tom
- Re: Dynamic modules: emacs-module.c and signaling errors, (continued)
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/26
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/27
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/27
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/27
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/27
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/27
- Re: Dynamic modules: emacs-module.c and signaling errors, Stefan Monnier, 2015/11/27
- Re: Dynamic modules: emacs-module.c and signaling errors,
Tom Tromey <=
- Re: Dynamic modules: emacs-module.c and signaling errors, Eli Zaretskii, 2015/11/25
Re: Dynamic modules: emacs-module.c and signaling errors, Philipp Stephani, 2015/11/25