From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:51061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7j9r-0005In-J8 for guix-patches@gnu.org; Sat, 23 Mar 2019 12:06:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7j9p-0007Xw-Nm for guix-patches@gnu.org; Sat, 23 Mar 2019 12:06:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42172) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7j9m-0007U1-5n for guix-patches@gnu.org; Sat, 23 Mar 2019 12:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h7j9l-0007Q7-Rr for guix-patches@gnu.org; Sat, 23 Mar 2019 12:06:01 -0400 Subject: [bug#34948] [PATCH 1/3] records: Allow thunked fields to refer to 'this-record'. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190322172120.10974-1-ludo@gnu.org> <20190322172719.11199-1-ludo@gnu.org> <87y35660fw.fsf@elephly.net> Date: Sat, 23 Mar 2019 17:05:10 +0100 In-Reply-To: <87y35660fw.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 22 Mar 2019 22:53:07 +0100") Message-ID: <87a7hlzidl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: 34948@debbugs.gnu.org I should mention that there are other craaaazzy applications of this! For example, the =E2=80=98self-native-input?=E2=80=99 field of be= comes useless, because now you can write: (package ;; =E2=80=A6 (native-inputs ;; Add self as a native input when cross-compiling. `(,@(if (%current-target-system) `(("this" ,this-record)) '()) ;; =E2=80=A6 ))) I think there are other cases in package definitions where this can be useful, possibly things like the =E2=80=98make-lua-*=E2=80=99 procedures th= at we have. Ludo=E2=80=99.