[erlang-questions] what is the correct syntax to spawm a MFA with no arguments?

Jarrod Roberson <>
Wed Apr 30 19:55:40 CEST 2008


start() -> spawn(fun loop/0).

I want to convert the above code snippet into a MFA, what is the correct
syntax to do this.

I tried start() -> spawn(?MODULE, fun loop/0, []). and all I get when I call
it is ** exception error: bad function 'area_server.start'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080430/3ae1eeae/attachment.html>


More information about the erlang-questions mailing list