emacs-devel
[Top][All Lists]
Advanced

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

Re: Buffer names are sometimes read-only objects in daemonized emacs


From: Wojciech Meyer
Subject: Re: Buffer names are sometimes read-only objects in daemonized emacs
Date: Fri, 30 Jul 2010 20:54:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Tassilo Horn <address@hidden>  writes:

> IMO a function shouldn't need to allow modification of it's return value
> explicitly, but instead should warn if that's possible.  But indeed,
> evaluating
>
>   (aset (buffer-name) 0 ?g)

How would you do this? I see that the check can be performed on only at
runtime. Bytecompiler will not warn, because the value might be
propagated, and Lisp is dynamicaly typed. (in simple cases like this it
is apparent, but consider just returning this value from function).

Wojciech



reply via email to

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