emacs-devel
[Top][All Lists]
Advanced

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

Re: Naming FCRs


From: LdBeth
Subject: Re: Naming FCRs
Date: Mon, 27 Dec 2021 13:46:20 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO)

> The current name stands for FunCallableRecords, but this name is clearly
> wrong, since it makes it sound like I'm defining a special kind of
> record that just happen to be callable as a function, whereas FCRs are
> really fundamentally functions that happen to have slots and a type,
> like records.

I'm not sure, is this feature similar to "Flavors" or "Entifies"
avaliable from Lisp Machine?

To quote from Lisp Machine Manual

> An entity is almost the same thing as a closure; an entity behaves
> just like a closure when applied, but it has a recognizably
> different data type which allows certain parts of the system such as
> the printer and describe to treat it differently. A dosurc is simply
> a kind of ·function, but an entity is assumed to be a
> message-receiving object. Thus, when the Lisp printer (sec section
> 23.1, page 506) is given a closure, it prints a simple textual
> representation, but when it is handed an entity~ it sends the entity
> a :print-self message, which the entity is expected to handle. The
> describe function (sec page 791) also sends entities messages when
> it is handed them. So when you want to make a message-receiving
> object out of a closure, as described on page 407, you should usc an
> entity instead.


-- 
LDB



reply via email to

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