This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: HI
- From: Andrea 'Fyre Wyzard' Bocci <fwyzard at inwind dot it>
- To: prasad inchal <princhal at yahoo dot com>,gcc-help at gcc dot gnu dot org
- Date: Mon, 26 Nov 2001 22:37:58 +0100
- Subject: Re: HI
At 23.42 25/11/01 (GMT -0800), prasad inchal wrote:
>Hi ,
>
> I wanted to know the binding concept of C++
>language.
>
> I have two issues regarding this,
>
> 1: I want to have C++ to create class objects
>dynamically, at runtime.
> 2: I want to have an interpreter where in I can call
>C++ member functions directly
> with the respective obj and parameters.
> Thanks ,
> Prasad
I don't think this is a GCC related question...
Anyway:
What is that you EXACTLY want to do ?
1)
Dynamically reate new CLASSES or just OBJECTS of a specifc class ?
I don't think yuo can't do the former in c++, while for the second just
define a class with
class my_class {
...
class definition
...
};
and create objects with
my_class* my_object = new my_class(class parameters);
For more C++ programming info, have a look at
<http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html>.
2)
That is, you need a c++ interpreter, not a compiler.
Have a look at <http://root.cern.ch/root/Cint.html>
HTH
fwyzard