Is it possible to declare a class level variable from within a method?
I'm simply trying to create a static counter, but I only want to create it if needed. The class calling it should live longer than the function itself.
My need for this is rare, but I'm interested if it would work.