bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#8415: 23.3.50; Extensible Emacs Registers


From: Leo
Subject: bug#8415: 23.3.50; Extensible Emacs Registers
Date: Tue, 05 Apr 2011 13:42:20 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.7)

On 2011-04-05 11:07 +0800, Stefan Monnier wrote:
> The end point is pretty much the same, but all the intermediate steps
> are safe and easy to check.

I think a structure still is a better approach. It offers uniformity and
allows access to the value stored in each slot so one can easily build a
new register reusing values from an old one which, in some use cases
(defadvice), can be convenient.

>> Well, there's EIEIO.  It gives you the ability to easily add methods
>> while not baking the dispatch into each one.  On the other hand, it's a
>> quite a bit of code to pull into the core at runtime.
>
> Indeed.

I have thought about using EIEIO in the beginning and ruled it out since
it is required at run time.

Leo





reply via email to

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