[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] foreign-declare doesn't work with e.g. #<#END.
From: |
Peter Danenberg |
Subject: |
[Chicken-hackers] foreign-declare doesn't work with e.g. #<#END. |
Date: |
Wed, 12 Sep 2012 08:03:27 -0500 |
User-agent: |
Mutt/1.5.21+52 (c26dbc7021f4) (2011-07-01) |
It looks like foreign-declare doesn't work with multiline string
constants with embedded expressions:
(let ((program "R-test"))
(foreign-code
#<#END
Rf_initEmbeddedR(4, (char*[]) {"#{program}",
"--slave",
"--vanilla",
"--args"});
END
))
results in:
Syntax error: in `foreign-code' - string expected
Multiline string constants without embedded expressions work fine,
however:
(foreign-code
#<<END
Rf_initEmbeddedR(4, (char*[]) {"R-test",
"--slave",
"--vanilla",
"--args"});
END
)
Can this be considered a bug?
- [Chicken-hackers] foreign-declare doesn't work with e.g. #<#END.,
Peter Danenberg <=