[erlang-questions] file:script/1 and -include
Sat Apr 14 11:51:18 CEST 2007
-include(...) is a preprocessor directive. The function file:script()
expects a sequence of expressions - just like file:eval(), btw,
except it returns the value of the last expression, rather than just
I'm not aware of any library function that does what you want.
2007/4/14, Peter Steiner <>:
> using -include in a file evaluated with file:script/1 fails with the
> error message:
> the evaluated file is:
> 1 -include("defs.hrl").
> 3 [
> 4 ].
> does the error indicate that -include not available for file:script/1
> evaluated code? if so, is there a function like file:script that
> evaluates a string instead of file content?
> thanks for any hints!
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions