【发布时间】:2019-03-09 10:13:34
【问题描述】:
这是我在在线编译器中运行的代码
-module(helloworld).
-export([start/0, call/2]).
start() ->
% error in the below line as syntax error before: ')'
Pid = spawn(?MODULE, call, ["hello","world"] ),
io:fwrite("~p",[Pid]).
call(Arg1, Arg2) ->
io:format("~p ~p~n", [Arg1, Arg2]).
【问题讨论】:
-
如果在线编译器给出了这个代码的错误,那么它是错误的。
-
请提供您使用的在线编译(web ?)
标签: concurrency erlang erl