variable as function name

Raimo Niskanen raimo@REDACTED
Fri Apr 22 09:04:11 CEST 2005


That is correct! The only alternative to exporting is to use fun()s.
But they differ in behaviour particulary concerning code change.
There have been ideas of how to remedy this, from the Hipe group,
but I do not remember how.


vances@REDACTED (Vance Shipley) writes:

> On Thu, Apr 21, 2005 at 08:48:22AM +0200, Raimo Niskanen wrote:
> }  
> }  The only functions you can skip the module name for are
> }  local, imported and autoimported (e.g erlang:self/0).
>   
> Yeah, I guess that was a bad example.  I should have used Foo().
> 
> It just bothers me that I have to export all the functions I
> might bind to Foo when I use mymodule:Foo().
> 
> 	-Vance

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list