[erlang-questions] Modules and function "encapsulation"

Silas Silva silasdb@REDACTED
Wed Sep 1 06:16:01 CEST 2010


On Wed, Sep 01, 2010 at 12:57:24PM +0900, Geoffrey Biggs wrote:
> Generally, you shouldn't use the -import statement. Call functions from
> other models explicitly using the model:function syntax (such as
> controller:start()). Using -import makes the code harder to follow and,
> as you discovered, leads to name clashes.
> 
> Geoff

Thank you!  I didn't realize I could use other modules functions without
-import'ing them...  That is because I was getting name clashes.
Thanks.

-- 
Silas Silva


More information about the erlang-questions mailing list