From: "Ludovic Courtès" <ludo@gnu.org>
To: 50335@debbugs.gnu.org
Cc: philippe.swartvagher@inria.fr
Subject: bug#50335: Inheritance vs. ‘this-package’
Date: Sat, 04 Mar 2023 16:15:50 +0100 [thread overview]
Message-ID: <87a60stumx.fsf@gnu.org> (raw)
In-Reply-To: <87r1e73x78.fsf@inria.fr> ("Ludovic Courtès"'s message of "Thu, 02 Sep 2021 15:48:27 +0200")
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 parent reply other threads:[~2023-03-04 15:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-02 13:48 bug#50335: Inheritance vs. ‘this-package’ Ludovic Courtès
2023-03-04 15:15 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a60stumx.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=50335@debbugs.gnu.org \
--cc=philippe.swartvagher@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.