[erlang-questions] newbie: why c.erl is special?

Matt Stancliff sysop@REDACTED
Fri Feb 29 23:51:43 CET 2008


On Feb 29, 2008, at 14:34, Anthony Kong wrote:

> If I rename c.erl to something else, the problem goes away.
>
> What is special about "-module(c)" ?

   Welcome to the world of flat module namespaces.

   The code module is your friend in these circumstances.
   Look into code:clash() and code:which(module).

   code:which(c) should return "<base path>/lib/erlang/lib/stdlib- 
<ver>/ebin/c.beam"


-Matt
-- 
Matt Stancliff            sysop@REDACTED
AIM: seijimr              iPhone: 678-591-9337
"The best way to predict the future is to invent it." --Alan Kay





More information about the erlang-questions mailing list