this line
(system* "guile" "-c" "(use-modules (commonmarl)) (exit ((lambda () 0)))")
returns 256 (notice that the module we're looing for is called commonmarL)
this one
(status:exit-val (system* "guile" "-c" "(use-modules (commonmarl)) (exit ((lambda () 0)))"))
returns 1
I don't understand what the point of status:exit-val is š
I am
Exploring at the REPL is one of the advantages of Guile
As for the syntax, you should copy my lines and paste them somewhere so you can properly lay them out
I know, sorry š
@catonano Hm, but in that case you can just pass 0?
@ckeen I don't understand what you mean
@catonano ((lambda () 0)) will eval to 0.
Yes, if the previous form runs successfully
Otherwise it won't be reached
In fact attempts with not existing modules return numbers different from 0
@catonano IDK the syntax but are you aware that you are evaluating your thunk on the spot?