Hello,
How is the module managed internally? It’s a namespace for the compile time or is it an instance stored in the heap or stack? Other?
Hello,
How is the module managed internally? It’s a namespace for the compile time or is it an instance stored in the heap or stack? Other?
Just a namespace. There’s nothing at runtime for modules. Well, if you pass a module around, like doing some_method(Crystal)
then an int associated to the module is passed around.
Excellent, thanks @asterite