IRC channel logs

2024-08-25.log

back to list of logs

<graywolf>Hello :) I am curious, is there a nice way to work with keyword arguments in syntax-case? I want to write a syntax-form that does some mangling on arguments before forwarding it to a procedure, something like (frobnicate-args "foo" "bar" #:pass-to list)
<graywolf>What would be elegant way to get the value of #:pass-to in syntax-case?
<mwette>graywolf: you can use a fender with (keyword? arg); see https://git.savannah.nongnu.org/cgit/nyacc.git/tree/module/nyacc/lang/c99/ffi-help.scm#n2315
<graywolf>Oh, that looks reasonable, thank you
<daviid>sneek later tell graywolf fwiw, here is another possible way to handle keywords args in syntax-case - https://git.savannah.nongnu.org/cgit/grip.git/tree/grip/goops.scm, line 24 for an appropriate comment, then line 62-72 for the define-method* definition
<sneek>Okay.
<jfred>Hm. I've just started trying to learn how to use g-golf with libadwaita, but I got a segfault when trying to instantiate an AdwActionRow: https://paste.sr.ht/~jfred/6817980cf97c49d89771946e80c6d6fbe77cf29c
<daviid>jfred: i thik you need to init adwaita to start to make instances, let me try here
<daviid>indeed - https://paste.centos.org/view/ea39f2a9
<daviid>jfred: ^^