in reply to Sharing data between children modules
As for access, I'd recommend you use methods or regular subroutines that return the right data/object for the current context, since that way you can change the implementation without having to change all the code relying on the information.
update: as a variant of this, if the relevant info is all provided by the top-level model object, you can also make the model object globally available from a class method/subroutine and then get the data from there.
|
|---|