I think you'd also need:
...where "C++_instance" means "put this in the object declaration for this object type. But what if you declare an integer? Then you'd need:
...where "C++_ctor" means "put this in the object's constructor". If you allocate memory, there's a strong argument for "C++ dtor" as well. Oh, and possibly "C++_header", which goes at the top of IDE_EDIT_objectdeclaration.h.
This is one way to do it "without any parsing". We could also parse the code and extract #include<> statements, removing the need for "C++_header" ...but now we've gotten into parsing C++.
I think this is why everyone is hesitating on the issue ---there's no easy way to hack it in, and (for now) there's no way that's clearly the "right way" to do it.
Code Select
{C++_instance}{std::vector<int>myVector;}...where "C++_instance" means "put this in the object declaration for this object type. But what if you declare an integer? Then you'd need:
Code Select
{C++_ctor}{my_var = 10;}...where "C++_ctor" means "put this in the object's constructor". If you allocate memory, there's a strong argument for "C++ dtor" as well. Oh, and possibly "C++_header", which goes at the top of IDE_EDIT_objectdeclaration.h.
This is one way to do it "without any parsing". We could also parse the code and extract #include<> statements, removing the need for "C++_header" ...but now we've gotten into parsing C++.
I think this is why everyone is hesitating on the issue ---there's no easy way to hack it in, and (for now) there's no way that's clearly the "right way" to do it.
