[erlang-questions] [Q]: Literals in functions

Ladislav Lenart <>
Mon Jun 18 16:51:48 CEST 2007


Hello,

I have a generated function with no arguments which returns
a rather complex but constant term.

Is the compiler "smart enough" to build this structure once
at compile time and then return it on each invocation or is
this structure constructed anew upon each invocation?

Thanks,

Ladislav Lenart




More information about the erlang-questions mailing list