Originally Posted By: the_clown
Oh it does? Good to know, how exactly does it break?


Assuming you have a library and a normal application, and both use this to create a singleton of type "Foo". The library and application will then both have their very own instance that is not shared. Normally the linker is responsible for getting rid of the multiple template instantiations and to make them into one, however, the linker doesn't work cross libraries, so the application and library both have their very own instances of the code and there of "Foo".

Originally Posted By: the_clown
Your snippet sets the size of a label, or the label's frame, to 5x5 I guess, by basically making a copy of the existing frame, modifying the properties of that copy and then setting it as new frame for the label?

Well, kind of. It only sets the origin and doesn't touch the size, but that's not the beauty of the snippet. Want to take another guess or should I say it?


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com