Z
Zacpod
Guest
Would love to have a create_end event (like step_end) that runs after all the create events.
I've been faking it using an "initialized" flag, and checking for that on the first step, but it's a bit kludgy.
I seem to be running in to this a lot.
E.g. As part of the create event I have objects adding themselves to a list.
Then a 'master' object runs code against that list.
I have to have the master run it's init stuff during it's first step, as that's the only way to ensure all the other objects have had a chance to add themselves to the list.
I've been faking it using an "initialized" flag, and checking for that on the first step, but it's a bit kludgy.
I seem to be running in to this a lot.
E.g. As part of the create event I have objects adding themselves to a list.
Then a 'master' object runs code against that list.
I have to have the master run it's init stuff during it's first step, as that's the only way to ensure all the other objects have had a chance to add themselves to the list.