IRC channel logs
2025-08-05.log
back to list of logs
<sibl>with Guile ffi, how do I define a function with variable arguments (va_list) like printf ? <mwette>sibl: you can't do those specifically, you need to define an interface per invocation <sibl>I see, not very practical but okay, thank you ! <mwette>I think newer libffi may have more help for this but guile hooks are not there. <mwette>user still needs to specify types for all arguments <mwette>I believe libffi v4 is targeting a capability to process the va_list. <old>I don't know for othjer arch, but for System V AMD64 psABI, it should be relativelly straight foward for libffi to handle variadic arguments <old>I would argue to never use variadic arguments in public API <old>In _modern_ public API :p <cow_2001>is there a way to write <!-- --> style comments into sxml? <cow_2001>hmm... (@ (sxml simple) xml->sxml) just drops the <!-- --> comments <identity>doubt that sxml provides a way to serialize comments <ekaitz>cow_2001: I bet you can just dump strings with that content that are not processed <ekaitz>cow_2001: (lambda () (display "<!-- SOME STUFF -->") should do it <cow_2001>ieure: a man gotta do what a man gotta do <ekaitz>i wish that was documented... in fact... I think I sent a pr that documents that <ekaitz>cow_2001: why shouldn't it work? You can make it superclever, if you wish <cow_2001>oh, and i am using sxml type of builder in haunt <lilyp>probably not with (sxml simple), but the ssax one it wraps should have you covered <lilyp>note though that ssax and simple do some things differently