export_to (Was: Re: the OO metaphor)
Bjorn Gustavsson
bjorn@REDACTED
Mon Dec 4 11:18:13 CET 2000
Martin Bjorklund <mbj@REDACTED> writes:
[...]
>
> The only drawback with the current code loading mechanism is that
> while it's very elegant in theroy, in combination with gen_server
> et. al. it's ugly. The problem here is that gen_server always calls
> the call-back module with an external call, thus forcing a code
> change. Come to think of it, this could actually be solved by using a
> fun instead of the call-back module! Hey, klacke, we're back to
> 'generic' with the 'doit' function ;-)
Using a fun would be faster as well, since fun calls are faster than apply/3.
>
>
> /martin
>
>
>
/Björn
--
Björn Gustavsson Ericsson Utvecklings AB
bjorn@REDACTED ÄT2/UAB/F/P
BOX 1505
+46 8 727 56 87 125 25 Älvsjö
More information about the erlang-questions
mailing list