[erlang-questions] Defining a module whose functions are locally available in any scope

Hynek Vychodil vychodil.hynek@REDACTED
Tue Jan 20 10:13:39 CET 2009


You can use -import() or -include(). .hrl with in-lined functions or its
combination and add it in each reia scope/module.

P.S.: How you will deal with GC of objects when implementaed as processes? I
have same problem with iterators when try implement as J. A. sugest do it as
process.

2009/1/20 Tony Arcieri <tony@REDACTED>

> I have a slightly nonstandard usage of Erlang (i.e. http://reia-lang.org/where I'm trying to implement a set of "main" functions) and would like to
> define a module whose functions are locally available in any scope, ala the
> "erlang" module.
>
> Is it possible to do this?
>
> --
> Tony Arcieri
> medioh.com
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



-- 
--Hynek (Pichi) Vychodil

Analyze your data in minutes. Share your insights instantly. Thrill your
boss.  Be a data hero!
Try Good Data now for free: www.gooddata.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090120/9aedb738/attachment.htm>


More information about the erlang-questions mailing list