Basically Idea is that I have these two OOP-objects where other OOP belongs as one of other OOPs variables. However, I need to have info from the original OOP constantly, hence I would need a way to access original OOP inside the other OOP.
as example:
Code: Select all
myOOP-units = {}
myOOP-World = {
units = myOOP-units
worldsize = 1
}
Is it therefore safe to have:
Code: Select all
myOOP-units.world = myOOP-World
for isnt this basically just a reference to myOOP-World, hence not taking much space etc. and not being a problem?
Also, is there any way that I could access this info through myOOP-units, without having it stored?
as in:
Code: Select all
parentname = GiveMeParentTableNameOf(self)