Question about Calling Objects
grasshopper
Posts: 438
If I used several objects and some of the objects call the "same object" more than once will this chew up double the space in memory?
For example
And in my math object it would have
This is only 2 examples but what if i were to have some 13 or more objects that called some other objects over and over?
For example
OBJ H1 : "math" Flo : "Float32"
And in my math object it would have
f : "Float32"
This is only 2 examples but what if i were to have some 13 or more objects that called some other objects over and over?
Comments
OBJ
ow : "One_Wire_P_003"
PUB Start | i
repeat i from 0 to 2
ow.Start(pin+i)
The compiler is quite intelligent in the way it allocates object space. Anything in VAR is duplicated as required, while the object code and DAT space are simply used once and called as is desired.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
Thanks this is what I was hoping the case would be.