Compile-time class instances
bearophile
bearophileHUGS at lycos.com
Sat Apr 3 18:14:06 PDT 2010
This idea can be related to the section "Pointer Hydration" written by Walter, the main difference is that it's done by the compiler, so for the programmer it's safer and simpler to use :-)
http://www.artima.com/cppsource/backyard.html
Such loading of already initialized class instances is commonly done in games written in C++, see for example the "Fast data load trick" in the Game Programming Gems 1:
http://alturl.com/ipje
Bye,
bearophile
More information about the Digitalmars-d
mailing list