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

mog mog-lists@REDACTED
Wed Apr 30 23:15:29 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jarrod Roberson wrote:
>
>
> On Wed, Apr 30, 2008 at 3:27 PM, Matthew Dempsky
> <matthew@REDACTED <mailto:matthew@REDACTED>> wrote:
>
> 2008/4/30 Jarrod Roberson <jarrod@REDACTED
> <mailto:jarrod@REDACTED>>:
>> I have also tried spawn(?MODULE, loop, []) and I get a warning
> that loop/0
>> 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?
>
> ----------------------------------------------------------------------
>
>
> _______________________________________________ erlang-questions
> mailing list erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
have you read my responses????
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIGOFweq+tARrxhnsRAq8XAJsE88jst9vdJsqnbvNEo0KBji0JdQCglkp7
0Rax42o9Miwv0qA0dh7Q8ao=
=1gp6
-----END PGP SIGNATURE-----




More information about the erlang-questions mailing list