From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: Change defaults of 'define-record-type*' need invalidate auto-compilation caches Date: Sat, 06 Jan 2018 23:07:39 +0800 Message-ID: <87o9m7m3es.fsf@member.fsf.org> References: <87shbjm3yd.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXq4f-0000Go-Av for guix-devel@gnu.org; Sat, 06 Jan 2018 10:07:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXq4a-0005Kk-8t for guix-devel@gnu.org; Sat, 06 Jan 2018 10:07:53 -0500 Received: from rezeros.cc ([45.76.207.221]:59304) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eXq4Z-0005JX-Ph for guix-devel@gnu.org; Sat, 06 Jan 2018 10:07:48 -0500 Received: from localhost (135.37.74.218.broad.hz.zj.dynamic.163data.com.cn [218.74.37.135]) by rezeros.cc (OpenSMTPD) with ESMTPSA id 45beaac3 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sat, 6 Jan 2018 15:07:13 +0000 (UTC) Received: from gift (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id fa0c9ad4 for ; Sat, 6 Jan 2018 15:07:39 +0000 (UTC) In-Reply-To: <87shbjm3yd.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Sat, 06 Jan 2018 22:55:54 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org > Hello, Send it by mistake... For example, in the current directory, I have 'foo.scm': --8<---------------cut here---------------start------------->8--- (define-module (foo) #:use-module (guix records) #:export (foo foo-x)) (define-record-type* foo make-foo foo? (x foo-x (default "x"))) --8<---------------cut here---------------end--------------->8--- And 'x.scm': --8<---------------cut here---------------start------------->8--- (use-modules (foo)) (display (foo-x (foo))) --8<---------------cut here---------------end--------------->8--- Run 'guile -L . x.scm', will output "x". Then I change the '(default "x")' to '(default "y")' in foo.scm, and re-run 'guile -L x.scm', it still output "x", I would expect it to change to "y". Only with '--fresh-auto-compile' or delete the cache of x.scm, I will get the output "y". Is this a bug?