[erlang-questions] what is the correct syntax to spawm a MFA with no arguments?
Wed Apr 30 23:02:00 CEST 2008
On Wed, Apr 30, 2008 at 3:27 PM, Matthew Dempsky <>
> 2008/4/30 Jarrod Roberson <>:
> > I have also tried spawn(?MODULE, loop, ) and I get a warning that
> > is unused.
> You need to add loop/0 to -export.
thanks that stopped the warning, and it actually works!
I thought the idea of that example is to _hide_ the loop/0 method since it
is an implementation detail
now that there is a start/0 function?
I guess my question to the group is; is there anyway to get this to work
without having to -export loop/0?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions