[erlang-questions] function flush/0 undefined

Gleb Peregud gleber.p@REDACTED
Thu Dec 1 08:09:49 CET 2011

On Thu, Dec 1, 2011 at 08:02, Barco You <barcojie@REDACTED> wrote:
> 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.

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.

More information about the erlang-questions mailing list