From: edk@beaver-labs.com
To: help-guix@gnu.org
Subject: I think thunked fields are breaking my previously working code
Date: Mon, 10 Jan 2022 18:55:02 +0100 [thread overview]
Message-ID: <87y23nfozl.fsf@rdklein.fr> (raw)
Dear Guixers
This is a follow-up on
https://lists.gnu.org/archive/html/help-guix/2022-01/msg00000.html
Using the REPL, I traced the bug on my code trying to update fields of
an operating-system records, which on gnu/system.scm are declared as
"thunked".
Guile is not my primary language. I would really appreciate some
pointers here:
- Why is it that I can't update those fields ?
- I was able to ~1 month ago, but can't do that now. Why ? Is my
use-case unsupported ? Should I expect other breaking change in the
future ? i.e. was I using a non-public interface ?
- How can I update those fields ?
For example, given that "minimal-container" is an operating system, I
can do the following:
(set-fields minimal-container ((operating-system-host-name) "toto"))
But not:
(set-fields minimal-container ((operating-system-label) "toto"))
while both fields are supposed to be strings, but label is "thunked".
Thanks in advance for any help.
Cheers,
Edouard.
next reply other threads:[~2022-01-10 18:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-10 17:55 edk [this message]
2022-01-10 21:39 ` I think thunked fields are breaking my previously working code Ricardo Wurmus
2022-02-27 20:35 ` Edouard Klein
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y23nfozl.fsf@rdklein.fr \
--to=edk@beaver-labs.com \
--cc=help-guix@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).