Subject: [bug#34948] [PATCH 1/3] records: Allow thunked fields to refer to 'this-record'.

From: Ludovic Courtès <[email-masked]>
Date: Sat, 23 Mar 2019 17:05:10 +0100

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’.