namespaces and timers
-
Can I not have a timer inside a namespace?
This:
namespace mySpace { reg myTimer = Engine.createTimerObject(); }
gives me this "generic" error:
mySpace.js (3): mySpace.myTimer: error at definition
-
Declare it as a const.
Works as a reg here though, but const is the correct type for timers.
-
@d-healey -= wow yep, strange because I DON'T need to do that outside a namespace...
thanks - moving on...
-
@lindon said in namespaces and timers:
I DONT need to do that outside a namespace
I can't see a reason to use reg or var for a timer, inside or outside a namespace.
-
@lindon you can declare a const inside a namespace
-
@ustk said in namespaces and timers:
@lindon you can declare a const inside a namespace
-- er , yes....clearly, but thats not actually the issue here...well never mind moving on...