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

Reply via email to