From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Slot accessing issues in EIEIO Date: Wed, 06 May 2020 17:58:11 -0400 Message-ID: References: <87a72lhf3b.wl-all_but_last@163.com> <878si5gmt7.wl-all_but_last@163.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="104394"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Jonas Bernoulli , emacs-devel@gnu.org To: Zhu Zihao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 06 23:58:57 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 1jWS48-000R0p-7v for ged-emacs-devel@m.gmane-mx.org; Wed, 06 May 2020 23:58:56 +0200 Original-Received: from localhost ([::1]:37014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWS47-0006nk-9d for ged-emacs-devel@m.gmane-mx.org; Wed, 06 May 2020 17:58:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWS3U-0006MG-Ty for emacs-devel@gnu.org; Wed, 06 May 2020 17:58:16 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWS3T-0006dw-M8 for emacs-devel@gnu.org; Wed, 06 May 2020 17:58:16 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id AE04D8113D; Wed, 6 May 2020 17:58:14 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D615E8072A; Wed, 6 May 2020 17:58:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1588802292; bh=0pSTqbOo4U6rZdKaCtsvmLXi3AdGNH+1Ul+5jNz8x8s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=BWyv3+7Dury/1oEIQ12q5ftWXZw+H3/91WWMGqPW66q4qrmX+DtyEVceSaRthCt42 OtpNxttzGmM2t/A+ICHCYsQ/fPV6bs0jV8oO2Pum3l4uR+KhCDbolWuNrGqN0Sq6Gt AcrZggrli63bkGX5Pf8IMtziJlPQODMFWiNE8Eigxkcdr4fsgohq3wsBZ/VUl+KJD5 jnvHPss6Jp7qTFmQ1r3DnOSZpXW6/msnIG55aR1Q3tu9eTeNEt3TMDqQ4MstTQUEXq 1X4kLhATSeuTbbVGsatqQIRKLNvP1FVGuN29e3cZSqDU1AMIZNJQU4+n0guppXJURf 7X7kmkF1ChfEw== Original-Received: from alfajor (unknown [216.154.3.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8EDEE1203E4; Wed, 6 May 2020 17:58:12 -0400 (EDT) In-Reply-To: <878si5gmt7.wl-all_but_last@163.com> (Zhu Zihao's message of "Wed, 06 May 2020 22:28:20 +0800") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/06 17:54:11 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:249132 Archived-At: > OK, a closql-object (This is a class defined in closql) is a proxy object to a > row in SQL database. So each time user tries to read a slot, closql must sync > values between database and Emacs first. OK, I'm starting to see vaguely what this is about, but it's still rather fuzzy. To better understand, I suggest that I'll throw some solutions so you can shoot them down explaining why they're not applicable. Would it work to use the `slot-missing` generic function? Stefan