getting data from another object (without return values) Possible
Chicago Mike
Posts: 88
So I'm wondering if anyone knows how to have an external OBJ (Possibly run as a separate COG from the main program) update a variable consistently in the main program (Cog zero). I completely get how to do this if the method being run in another cog is in the same program file, however when its run from a different object this gets me stuck. What I'm trying to do is have a separate entity (Seperate OBJ file) constantly update a few frequently changing variables in the main program. Hence why return values will not work. (Or at least not the conventional way).
Can an external object reference the memory address of a variable in the main program? (@Main_variable). If so how to do declare it in the object so it knows where it is?
Thanks.
Can an external object reference the memory address of a variable in the main program? (@Main_variable). If so how to do declare it in the object so it knows where it is?
Thanks.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?