Extracted from ticket # 40443.
We have basically the problem that classes are only constructed at
runtime, which has 2 negative impacts: associating the vtable info with
the class needs some helper storage like the props and namespaces can
only be vaguely attached to the correct class at runtime too.
To get around that the following came to my mind:
- we create a class when needed during compile time
- it gets a flag set (one of private0..7) not_yet_finished_FLAG or such
- newclass, when checking if a class exists, examines that flag and
continues adding the runtime information
- the classes constructed in that way are frozen into the PBC