[erlang-questions] : Package Support/Use

Dominic Williams xpdoka@REDACTED
Mon Nov 6 10:49:51 CET 2006


Hi Raimo,

> Can someone explain this eiffel solution, that many deem better...

In Eiffel, as in Erlang, the code for a class can directly
reference another class, by name, without doing anything
like an #include. There is only a single, global namespace
for class names.

A cluster of classes is a bit like an Erlang application:
it's a collection of source files residing in a directory.

LACE is a Language for the Assembly of Clusters in Eiffel.
It's an external file (not Eiffel source code) that provides
the compilation system with some additional information
about how to compile, run, and assemble the clusters.

One of the things you can do in a LACE file is to specify
that cluster A is going to rename class Foo from cluster B,
and call it Bar instead. Cluster A is then free to have its
own Foo class, or to use a Foo class from a third cluster C.

Hope that helps,

Dominic Williams
http://www.dominicwilliams.net

----



More information about the erlang-questions mailing list