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