This is the mail archive of the guile@cygnus.com mailing list for the guile project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
>>>>> "Alexander" == Alexander Asteroth <alexander.asteroth@informatik.uni-bonn.de> writes:
Alexander> test.scm:
Alexander> (load-from-path "hobbit4d/module.scm")
The compiler does not include any external file at
compile time, only at run time, so the macros cannot be expanded at
compile time. Solution:
test.scm must have module.scm COPIED at the beginning.
Alexander> (define-module (std io)) (define
Alexander> (println . args) (for-each display
Alexander> args) (newline) (force-output))
Alexander> (println "Hello " "world")
>> hob -m -o test test.scm ./test
Alexander> ERROR: In procedure apply: ERROR:
Alexander> Wrong type argument in position 1:
Alexander> #<unspecified>
--
B. Urban