[erlang-questions] fun question...
Håkan Mattsson
hakan@REDACTED
Wed Mar 31 17:19:02 CEST 2010
Just be aware of that the function is undocumented (that is unsupported).
/Håkan
2010/3/31 Dave Smith <dave.smith.to@REDACTED>:
> Thanks, this was helpful.
>
> --DS
>
>
> 2010/3/31 Björn Gustavsson <bgustavsson@REDACTED>
>
>> On Tue, Mar 30, 2010 at 7:23 PM, Dave Smith <dave.smith.to@REDACTED>
>> wrote:
>>
>> > So I was expecting this to work...
>> > EncFn = fun CodecModule:encode/1.
>> >
>>
>> It currently does not work, but it might in a future release.
>> There is an EEP:
>>
>> http://www.erlang.org/eeps/eep-0023.html
>>
>> Before that EEP is implemented, you can use
>>
>> erlang:make_fun(Mod, Name, Arity)
>>
>> to create a fun.
>>
>> --
>> Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list