Alexandru Cojocaru <[email protected]> writes:
> when using the SRFI-105 syntax everything works fine, but I receive
> syntax warnings
>
> bash> cat 1.scm
> (read-enable 'curly-infix)
> (define a {1 + 1}) (newline)
> (display a) (newline)
The problem is that the expression "(read-enable 'curly-infix)" is not
evaluated until after the entire file has been read and compiled, and
that's too late.
Please remove "(read-enable 'curly-infix)", and in its place put
"#!curly-infix", as was recommended in the SRFI-105 section of the
manual. You should also put a blank line before it, so that it's not
interpreted as the shebang at the top of a script.
Regards,
Mark