Re: custom module loading and compilation

2024-05-23 Thread Paul Jarc
I wrote: > This works when I run Guile with --no-auto-compile, but with > compilation enabled, I get: > ;;; Unbound variable: my-load > How can I make the binding visible to the compiler? In case anyone else runs into this: I solved it by wrapping the definition of my-load in (eval-when (expand ev

Re: custom module loading and compilation

2024-05-13 Thread Nala Ginrut
Hi Paul! I don't know why you don't use the standard module definition and import/export interface, but if you do want to play modules with the introspection functions, here's a hint for you: --- (define (export-all-from-modu

custom module loading and compilation

2024-05-11 Thread Paul Jarc
Hi. I'm writing a custom module system that avoids the standard search path and list-of-symbols naming scheme. Instead of using use-modules and define-module, I have a roughly similar procedure, let's call it my-load, that creates a module with make-module and loads a file into it with primitive-