Author Topic: Need your opinion on how i should store some information in variables.  (Read 547 times)

Let's say i have

$this["uinameofdatablock"] = "something";

I can retrieve this information by doing

%thing = $this[%datablock.uiname];

Should i do it that way, or this way (when i create the datablock just toss the info in there)

datablock thingData(thing)
{
     this = "something";
};

And retrieve it like this %datablock being the datablock of course

%thing =%datablock.this;

The info is simply just static information that won't change.. But which way do you guys think would be more efficient.. just wondering.

In my preference I would just save it in the datablock.

Generally I use arrays.

Saving it to the object is better; it's less likely to get overwritten that way.



Also,

1: Are you going in an infinite loop? Yes: 2; No: 3.
2: Go to 1.
3: Go to 1.


:3