[erlang-questions] function flush/0 undefined

37 views
Skip to first unread message

Barco You

unread,
Dec 1, 2011, 2:02:11 AM12/1/11
to erlang-questions
It's strange that when I compile a module with flush() in some functions I got error: function flush/0 undefined, but the flush() can be executed in the erl shell.

What's wrong with my program.


BRs,
Barco

Gleb Peregud

unread,
Dec 1, 2011, 2:09:49 AM12/1/11
to Barco You, erlang-questions

Actually flush/0 is defined in module shell_default.erl (which calls
c:flush/0), which also has all functions, which are shown when you
invoke "help()." in the shell. They are imported to the shell, so you
can invoke them without module name.
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Reply all
Reply to author
Forward
0 new messages