[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SRFI-105: syntax error/warning
From: |
Mark H Weaver |
Subject: |
Re: SRFI-105: syntax error/warning |
Date: |
Mon, 26 Aug 2013 15:19:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Alexandru Cojocaru <address@hidden> 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