#Can we use statics like this? ...
1 messages · Page 1 of 1 (latest)
yes
I've been using statics like this for a couple things
I think Sonus lately uses mostly statics
Just so I'm not polluting the global name space as much
yeah people have been bitching at me about that in Scribble so i thought i'd tidy things up
Yeah figured
using a constructor for _struct in a also handles initialisation nicely
it does indeed
lol i'm down to one single global remaining
oh duh i can move that into the state struct, we're good, zero globals
should we do this for Input 
seems like it went pretty quick.. o nvm lol
haha
i ground it out
Scribble was particularly offensive because it used a lot of variables for shader uniforms
Input is pretty bad too though...
is debugging the library not a nightmare this way
does the debugger surface script scope stuff now
it does not
the structure of Scribble is more conducive to this kind of programming since everything's tucked away inside structs anyway
mhm
if it works for you, it works
not like i spend much time in the debugger either tbh
we'll see how it goes for Scribble, i'm in no rush to do this conversion for other libs
anyway maybe moving out of global and an init review can be a thing... for later
scribbles the guinea pig 
indeed!
i also find Scribble generally easier to debug than Input i think?
guess it's easier to replicate bad situations
i ain't no octopus, can't press all those buttons all at once
don't need to invent any enemies
Y2K was a hell of a time
i love all the organic shapes
i wonder when we'll go back to that
i think second time round we'll do it good
I often do something like __XXX_init() in the watcher and it gives me the struct back
