Hopefully simple problem
Bjorn Gustavsson
bjorn@REDACTED
Mon Jan 19 09:51:05 CET 2004
Yes, using a real fun instead of a "tuple fun" is
recommended. That will be faster too, as a fun contains
a direct pointer to the code to be executed, while a
"tuple fun" requires a lookup in a hash table.
We will probably never be able to remove "tuple funs"
from the language (for backwards compatibility), but we
still recommend that you don't use them in new code.
/Bjorn (Erlang/OTP at Ericsson)
Vladimir Sekissov <svg@REDACTED> writes:
> Good day,
>
> carsten> This should work:
> carsten>
> carsten> X = nnet:neuron (0, {nblah, bfunc}, {nblah, xfunc}, []).
> carsten>
> carsten> A strange language Erlang is ;-)
>
> According to
> http://www.erlang.se/workshop/2003/paper/p36-sagonas.pdf
>
> you should use ordinary function call instead of {Module, Function} if
> you wanted your code to be fully HiPE compatible.
>
> Best Regards,
> Vladimir Sekissov
>
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list