[erlang-questions] Why no ?FUNCTION macro

Bjorn Gustavsson bjorn@REDACTED
Thu Sep 20 14:40:40 CEST 2007


"Adam Lindberg" <adam@REDACTED> writes:

> Hi all!
> 
> Why is there no ?FUNCTION macro? If it is possible to do ?MODULE and ?LINE
> it should be possible to do ?FUNCTION too?

The pre-processor that defines macros knows nothing about Erlang syntax and has no
idea about which the current function is.

/Bjorn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list