From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Slot accessing issues in EIEIO Date: Thu, 7 May 2020 12:32:27 -0700 Message-ID: <862ed980-79d8-3a08-9d0b-253d8415b323@dancol.org> References: <87a72lhf3b.wl-all_but_last@163.com> <871rnx131x.fsf@bernoul.li> <87v9l9ypyc.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78976"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: Zhu Zihao , emacs-devel@gnu.org To: Jonas Bernoulli , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 07 21:35:52 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWmJE-000KQI-92 for ged-emacs-devel@m.gmane-mx.org; Thu, 07 May 2020 21:35:52 +0200 Original-Received: from localhost ([::1]:52062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWmJD-0000Hl-3e for ged-emacs-devel@m.gmane-mx.org; Thu, 07 May 2020 15:35:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWmG4-0006Ai-25 for emacs-devel@gnu.org; Thu, 07 May 2020 15:32:36 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:43930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWmG2-0002VM-4x for emacs-devel@gnu.org; Thu, 07 May 2020 15:32:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ekAfAv4JHXulVH/oH7mqE13KtN5CAe+YM0aDVxEpu/8=; b=YRsFDAY8r9yPJFj2LU1Hjhy4g7 yW67riyvgtpnVr9tAm2xRrVWUJp6qLq49MnFrNqgsDSMFried3nabbu149Kauk+x2eVR2iPDmGdeN moGRmE2y1jkkZkugdmIlYItNgp+pploEYfBjdl9Nnbyr1Hldgw93RfSwFkr92qkfr/ZHV2Zp6kB0l O6LidqIedpKbDrlJumavSFEV7C2WTnjyM0NFIZuaqKaqyy9SmA8/Jl/t4sdDNb6UWaGHE321Thuy3 zDI3wtKVFYd3h7oiWLeORfZ/wvsb83Cvbbtb21sXqlvxH0p1xcVVxxy/EKyfWPPIaMD6von2MM+Is KJdvzlCQ==; Original-Received: from [2604:4080:1321:9a00:cc88:bc25:b50e:59a4] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jWmFw-0004Ev-5k; Thu, 07 May 2020 12:32:28 -0700 In-Reply-To: <87v9l9ypyc.fsf@bernoul.li> Content-Language: en-US Received-SPF: pass client-ip=2600:3c01::f03c:91ff:fedf:adf3; envelope-from=dancol@dancol.org; helo=dancol.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249206 Archived-At: On 5/6/20 9:43 AM, Jonas Bernoulli wrote: > Stefan Monnier writes: > >>>>> Recently, I'm reading the source of >>>>> closql(https://github.com/emacscollective/closql), A Emacs sqlite database ORM >>>>> package. It use eieio object, and put a piece of advice on eieio-oref to >>>>> intercept the reading slot action. >>>> >>>> Yuck! Can you explain why they need an advice on `eieio-oref`? >>> >>> A right. That's one of the reasons I never bothered to get eieio >>> changed to better accommodate my extension; I expected a negative >>> reaction like this. >> >> Note the "Yuck" is about putting an advice on such a core function. >> Not about the functionality that it provides (over which I don't have >> an opinion yet since I don't know what it does). >> >> IOW the "yuck" is saying "please request an extension so it can be >> better accomodated" ;-) > > Okay understood. I guess I was feeling a bit insecure about having > written a ORMish thing in first place, and was a bit over sensitive > because of that. ;D FWIW, this ORM sounds pretty neat, especially since it works with all the EIEIO field sugar.