A gentle critque..
dennis luehring
dl.soluz at gmx.net
Tue May 16 09:43:20 PDT 2006
> // For simple template instantiation. Creates a wrapper type in the cpp file
> for this type.
> cpptype VectorInt { std::vector<int> } MyVectorInt;
have you any idea of how templates are generated and "instanciated"
what should the compiler do at this step? (please the describe the
low-level part a little bit more detailed)
> // For instantiating constants
> cppconst int NULL { NULL };
???
> // Creating a cpp class
> MyClass c = new MyClass("A class\0");
> // Calling a method on a cpp class
> c.Method("String Argument\0");
calling methods and instanciat classes through strings?
this is joke, or? (use the COM interface)
> // Handling an exception
> cpp {
> try {
> c->ThrowException(%%str);
> }
> catch (std::string ex)
> {
> %%ret = ex;
> }
> }
is this your idea of an clean integration? (what does clean mean in your
world)
ciao dennis
btw: how many years do you code c/c++?
More information about the Digitalmars-d
mailing list