IRC channel logs


back to list of logs

***dostoevsky5 is now known as dostoevsky
<stis>Hi guilers!
<tricon>stis: Howdy.
<attila_lendvai>when is it that (current-filename) returns #false ? is it when the file is only load'ed (as opposed to compiled)?
<attila_lendvai>or from a higher level perspective: how can i reliably load (or "include") a file that is relative to my source.scm file?
<attila_lendvai>the context is Guix and it's a package's definition that wants to load the hash codes from a separate file
<attila_lendvai>i'd prefer that file to be a simple form that i read with READ. but if i have to, i'll resort to turning it into a full-blown .scm file that gets loaded with the module system...
<attila_lendvai>on a related note, (dirname #f) returns with a rather non-useful error message: In procedure scm_to_utf8_stringn: Wrong type argument in position 1 (expecting string): #f
<rekado>the manual says that CALL-WITH-NEW-THREAD returns a thread; but it also says this: “Once THUNK or HANDLER returns, the return value is made the _exit value_ of the thread and the thread is terminated.”
<rekado>how can I get at this exit value?
<daviid>rekado: join-thread i think