[erlang-questions] escript and define
Bengt Kleberg
bengt.kleberg@REDACTED
Thu Sep 20 07:17:06 CEST 2007
greetings,
could you live with a function? like this:
#!/usr/bin/env escript
foo() -> "hello world".
main(_) ->io:fwrite("~s", [foo()]).
note, this does not work if you want something that can be pattern matched.
bengt
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,
>
> Steve
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list