[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r117987: * internals.texi (Stack-allocated Objec

From: David Kastrup
Subject: Re: [Emacs-diffs] trunk r117987: * internals.texi (Stack-allocated Objects): Describe this feature.
Date: Tue, 30 Sep 2014 21:49:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Date: Tue, 30 Sep 2014 12:15:34 -0700
>> From: Paul Eggert <address@hidden>
>> Regardless of whether we use declaration-style macros, there is one 
>> thing I'd like to change: the macro names.
> Yes, the names are not helpful.
>> These macros are not about *scope*; they are about *lifetime*.  How
>> about the prefix "auto_" (from the C keyword 'auto') rather than
>> "scope_"?  Or maybe "block_" because it's block lifetime?  ("auto_"
>> is shorter....)
> Or maybe "alloca_*", as in alloca_string, alloca_list1, etc.

alloca is "to end of function".  Language-supported dynamic allocations
are "to end of block".  That's not quite the same.

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]