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

Ladislav Lenart lenartlad@REDACTED
Mon Jun 18 16:51:48 CEST 2007


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?


Ladislav Lenart

More information about the erlang-questions mailing list