IRC channel logs

2025-06-04.log

back to list of logs

<rlb>We don't really have a simple/compact way to run a module function as main from the command line, do we? e.g. say if "guile -e '((some module) main)'" were an implicit use-modules followed by calling main on the cli args.
<identity>rlb: guile -e "(@ (some module) main)" is what you are looking for
<identity>it is shown in (info "(guile) Scripting Examples") i think
<identity>there is also @@ for non-exported procedures
<rlb>identity: well don't I feel foolish -- I just looked at the --help output and assumed FUNCTION wasn't clever (and right wrt @@). Thanks much.
<rlb>ACTION is toying with adding srfi-64 support to test-suite, i.e. *.s64 files are run with an automake parallel test harness compatible driver so we can more trivially incorporate existing srfi-64 tests (as provided by srfis themselves).
<rlb>It's a fairly simple augmentation of what we already have, plus a fairly straightforward srfi-64 runner... I *think*.
<lechner>Hi, can foreign-library-function deal with varargs?