define-struct, define-inline

Bent Phillipsen <[email protected]>
Newsgroups gmane.lisp.scheme.bigloo
Message-ID <CAD1yAUS18GkYVL3bJFb-n_0eVgmd-Eda1=BH10gCXRYuQOWd+w@mail.gmail.com>
Hi,

I have the problem, that define-struct only works if used outside of a
function. This seems to be related to the fact that define-inline also only
works if used outside the main function, as shown in this small example:

(module application
    (main start))

(define-inline (fun a b) (+ a b))  ; this works!

(define (start argv)
    ;(define-inline (fun a b) (+ a b))  ; this doesn't work!
    (print (fun 2 3))
)


Am I doing something wrong here ?

Regards,

Bent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.