[erlang-questions] behavior of funktions
Anders Nygren
anders.nygren@REDACTED
Tue Jul 24 23:30:41 CEST 2007
On 7/24/07, Johannes <dajo.mail@REDACTED> wrote:
> i thought bout adding this future to the erts.
> to handle functions with side effekts i thought of useing
> ::funname or module::funname
> to enable this future.
> Is there any problem with using '::'? or should i use other letters ?
>
> today i got the sourecode of erlang from
> http://www.erlang.org/download/otp_src_R7B-1.tar.gz and started to
> search for the code of erl.
Do You have any special reason to chose a 7 year old version of Erlang?
/Anders
> What is the file i have to modify ?? and what are the files assigned to
> erl ??
>
> greatz Johannes
> Johannes schrieb:
> > hi, i have a question about the behavior of funktions.
> > if theres a function:
> > f(A,0) ->
> > 1;
> > f(A,B) ->
> > [f(A,B-1),f(A,B-1)].
> > how often is f(A,B-1) evaluated then ? just one time, and erlang tooks
> > the result everywhere where it fits, like f(A,B) -> TMP=f(A,B-1),[TMP;TMP].
> > or is it evaluated every time again ??
> >
> > greatz Johannes
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list