[erlang-questions] escript and define
Thu Sep 20 07:17:06 CEST 2007
could you live with a function? like this:
foo() -> "hello world".
main(_) ->io:fwrite("~s", [foo()]).
note, this does not work if you want something that can be pattern matched.
Those were the days...
EPO guidelines 1978: "If the contribution to the known art resides
solely in a computer program then the subject matter is not
patentable in whatever manner it may be presented in the claims."
On 2007-09-19 17:45, Stefan Strigler wrote:
> Hi there,
> is there a way to define constants in escript? I've tried with
> #!/usr/bin/env escript
> -define(FOO, "hello world").
> main(_) ->
> io:format("~s", [?FOO]).
> but no luck.
> Any help appreciated,
> erlang-questions mailing list
More information about the erlang-questions