zackeryfix / ngen

Next-generation C++ Framework - The next-generation of C++ software development is here.
MIT License
1 stars 0 forks source link

Create object using reflected type information. #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

The goal here will be to provide the mechanics required for creating a dynamically typed object at runtime:


// for read-only objects that use static-typing at compile-time:
real value = 6;
object o = const_object(&value);

// for owner objects that use dynamic-typing at runtime:
object o = Reflection::GetType("Ngen::real")->CreateInstance();

This will require meta-programming macros, classes, and functions that can be used to generate RTI at compile-time. All code related to this ticket will go in the Ngen::Reflection namespace which will reside in the Ngen.Reflection library (or shared object file).

GoogleCodeExporter commented 9 years ago

Original comment by qc.zackf on 4 Nov 2013 at 8:21