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]

Hobittable but nonexecutable code


The following simple program:

(define-module (std io))
(define-public  println println) ; because of non-hobbitability of
                                 ; (define-public (sum . args) (apply +
args))

(define (println . args)
 (for-each display args)   ;;;; this line produces the error
 (newline)
 (force-output)
)

(display "ready\n")

Compiles without warning but when executed produces the following error
message:

> a.out
ERROR: In procedure apply:
ERROR: Wrong type argument in position 1: %S

Any Help? Thanks, Alex