Erlang is getting too big

Dan Gudmundsson dgud@REDACTED
Tue Oct 14 16:40:21 CEST 2003


Thomas Lindgren writes:
 > > But since auto-recognized BIFs override local
 > > definitions (sic!),
 > > this would probably break a lot of existing code.
 > 
 > If you mean BIFs that do not need the erlang: prefix,
 > then the override nowadays goes in the other
 > direction. (And correctly so, IMO.)
 > 

Hmm...

-module(junk).
-compile(export_all).

x(Y) ->
    abs(Y).

abs(X) -> sune.
     
3> c(junk).       
./junk.erl:7: Warning: defining BIF abs/1
{ok,junk}
4> junk:x(8).
8
5> junk:x(-8).
8
6> junk:abs(8).



More information about the erlang-questions mailing list