[Grace-core] Dialect Design Proposal

Marco Servetto marco.servetto at gmail.com
Mon Nov 26 12:20:19 PST 2012


> wrapped around them, which means that each time I import it, I get a new
> object.
>
> I'm pretty sure you've only got a module once per program.
> Otherwise, if say two different modules import module "A" - surely they
> should share the same module-object?
> It's hard to see how you could communicate between modules otherwise.

Well, my understanding was that new instances of modules was created
and that the communication between modules
was the "functional" communication of the outer module that uses the
submodules to work.
What other kind of communication we are thinking about supporting?

If we support statefull modules, sharing the instance of (private)
submodules is going to have unpredictable behavior and/or breaking
encapsulation.


More information about the Grace-core mailing list