Proposed change to libraries

Fredrik Linder fredrik.linder@REDACTED
Wed Feb 23 09:56:58 CET 2005


> From: Luke Gorrie
> 
> "Fredrik Linder" <fredrik.linder@REDACTED> writes:
> 
> > Yes, it is used in (older parts of) our software at CellPoint.
> 
> [...]
> 
> > >   callback(Values, Callback = {M,F}) when list(Values) ->
> > >       apply(M, F, Values).
> 
> but if I had thought a bit harder I'd have realised that this is just
> an apply/3 and not really related to the tuple-function business.
> That would have to be something like
> 
>   CB = {mod,fun},
>   if ... -> CB();
>      ... -> CB(Arg)
>   end
> 
> which looks a bit more exotic.

Well, I did the same mistake. But the reply is the same - it is in use (but I'd change it to the fun M:F/A syntax as soon as it's there).

/Fredrik



More information about the erlang-questions mailing list