where can i find more info on the apply BIF

Ulf Wiger <>
Fri Aug 5 02:10:14 CEST 2005


Den 2005-08-05 01:20:22 skrev MEENA SELVAM <>:

> where can i find more info on the apply BIF

The BIFs are documented in erl -man erlang.

The 'erlang' module contains the built-ins. It's a bit
special: there is actually an erlang.erl file, but
it doesn't contain nearly all of the code (most of the
functions in the module erlang are implemented in C).

The BIFs, and most of the basic operations supported
in Erlang, can be called as erlang:BIF(...):

3> erlang:apply(erlang,send,[self(),hello]).
hello
4> flush().
Shell got hello
ok
5> erlang:'+'(3,4).
7

But as always, stick to the documented functions. ;-)

/Uffe
-- 
Ulf Wiger



More information about the erlang-questions mailing list