Author Topic: Scripts  (Read 5066 times)

  • Administrator
  • Sr. Member
  • *****
  • Posts: 407
    • View Profile
Re: Scripts
« Reply #30 on: October 06, 2021, 10:18:47 pm »
I'm technically wrong in my previous post. Shared object data are loaded from disk storage not by SharedObject class constructor upon object declaration, but by calling it's getLocal(...) function which is practically used as an additional object constructor.
SharedObject is otherwise static class so it's formal constructor is most likely empty.
I'm sorry for confusion. I shouldn't post such things tired late in the night.

Maybe I should note short dictionary:
Object = data structure, like variable, but more complex, holding multiple variables and also functions for operations with that data.
Objects are dynamically created and removed in the dynamic data part of program memory (heap) during program run.
Class = sort of static template for object of particular type. Also contains function for creating object (constructor) and removing object (destructor), both called automatically. It is located in the fixed part of program memory and it cannot hold any data.
There are some language dependent exceptions.
Anyway, I'm doing the same mistake again by pulling this form my ... late in the night, so it may be inaccurate. After all I'm even not a programmer.