[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#34948] [PATCH 1/3] records: Allow thunked fields to refer to 'this-
From: |
Ludovic Courtès |
Subject: |
[bug#34948] [PATCH 1/3] records: Allow thunked fields to refer to 'this-record'. |
Date: |
Sat, 23 Mar 2019 17:05:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
I should mention that there are other craaaazzy applications of this!
For example, the ‘self-native-input?’ field of <package> becomes
useless, because now you can write:
(package
;; …
(native-inputs
;; Add self as a native input when cross-compiling.
`(,@(if (%current-target-system)
`(("this" ,this-record))
'())
;; …
)))
I think there are other cases in package definitions where this can be
useful, possibly things like the ‘make-lua-*’ procedures that we have.
Ludo’.