[erlang-questions] Newbie question: function include/1 undefined

Stanislaw Klekot <>
Fri Sep 30 15:32:38 CEST 2016


On Fri, Sep 30, 2016 at 09:25:49AM -0400, Donald Steven wrote:
> Hi all,
> 
> I can get '-include(' to work before the main() function, but I
> can't get it to work *in* a function, either using a comma or a
> period at end.

It doesn't work that way. This is a compiler's directive, not
a statement. It's interpreted at the compilation time, not when you
execute code.

What do you actually want to achieve with this?

-- 
Stanislaw Klekot


More information about the erlang-questions mailing list