IRC channel logs
2026-02-27.log
back to list of logs
<apteryx>how can I use a Guile parameter from the C code? <apteryx>can I define a parameter with make-parameter on the Scheme side and access it with scm_fluid_ref on the C side? <apteryx>oh, parameters are procedures, right? So I can just get a handle to the scheme procedure from C and use scm_call_1 to set it or scm_call_0 to read it. Is this correct? <mwette>(procedure? (make-parameter #f)) => #t <JohnCowan>It could only *not* be a procedure in a Scheme that has callables other than procedures <JohnCowan> I sometimes think callable records would be a Good Thing <lloda>applicable structs also give #t for procedure?