[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50335: Inheritance vs. ‘this-package’
From: |
Ludovic Courtès |
Subject: |
bug#50335: Inheritance vs. ‘this-package’ |
Date: |
Sat, 04 Mar 2023 16:15:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Ludovic Courtès <ludovic.courtes@inria.fr> skribis:
> We stumbled upon an idiom for package arguments that, combined with
> package inheritance, would not work as expected.
[...]
> We don’t want to (package-arguments this-package) here: that would
> naturally lead to an infinite loop. But we want something close to it,
> in spirit: (package-arguments parent), where ‘parent’ is the package we
> inherit from.
>
> (package-arguments parent) could call the ‘arguments’ thunk of the
> parent, but it would pass it the child as its argument.
Here’s an example where I ended up manually defining ‘parent’:
https://git.savannah.gnu.org/cgit/guix.git/commit/?h=core-updates&id=0aed5bf5120bd434e53be0cea3f96547f95837d6
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#50335: Inheritance vs. ‘this-package’,
Ludovic Courtès <=