emacs-devel
[Top][All Lists]
Advanced

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

Re: Slot accessing issues in EIEIO


From: Zhu Zihao
Subject: Re: Slot accessing issues in EIEIO
Date: Thu, 07 May 2020 12:55:51 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/27.0 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Thu, 07 May 2020 12:00:52 +0800,
Zhu Zihao wrote:
> 
> Hmm, could you please take a look at this piece of code?
> https://github.com/emacscollective/epkg/blob/master/epkg.el#L137
> 
> In this defclass definition. slots prefixed with "closql-" was reserved for
> internal usage. and other slots present the columns in SQL database.
> 
> Obviously, accessing a slot in these definitions is valid. For example,
> accessing slot "foobar" in that object will trigger real slot-missing method
> because our definitions don't contain it. And accessing slots will trigger a
> sync operation between Emacs VM and SQL database.
> 
> When we put the sync logic in slot-missing. How to distinguish really missing 
> slots
> and "simulated slots" is a problem.

When we put the sync logic in slot-missing. How to distinguish really missing 
slots
and "simulated slots" is a problem.
^^^
from




reply via email to

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