emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master b7f83ad: Prefer memset to repeatedly assigning


From: Daniel Colascione
Subject: Re: [Emacs-diffs] master b7f83ad: Prefer memset to repeatedly assigning Qnil
Date: Mon, 19 Jan 2015 07:14:42 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 01/19/2015 06:33 AM, Stefan Monnier wrote:
>>     Prefer memset to repeatedly assigning Qnil
> 
> I don't know if I like this idea very much.  It's nice to make Qnil be
> represented by 0, but should we really rely on this all over the place,
> making it quasi-impossible to revisit this choice in the future?

If we can't rely on Qnil being 0, what's the point of making Qnil == 0
in the first place? If we can rely on Qnil being 0, we can put Lisp
variables in BSS, use memset, and perform other nice optimizations.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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