MartinK12
Member
Take for example this simple code from manual:
Is it executed like loop, creating ds_list?
So with statement takes each instance of obj_ball in order (probably from low to high obj_ball id?), checks its str variable with calling object, then takes another obj_ball instance until all are checked?
And only then the rest of the code is executed?
I understand with statement, just want to know what is going on inside it
Code:
var inst;
inst = noone;
with (obj_ball)
{
if str > other.str inst = id;
}
if inst != noone target = inst;
So with statement takes each instance of obj_ball in order (probably from low to high obj_ball id?), checks its str variable with calling object, then takes another obj_ball instance until all are checked?
And only then the rest of the code is executed?
I understand with statement, just want to know what is going on inside it