Abbie Normal is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Abbie Normal @catonano

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 šŸ˜•

Ā· Web Ā· 0 Ā· 0

@catonano IDK the syntax but are you aware that you are evaluating your thunk on the spot?

@ckeen

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

@ckeen

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