D
Don Kim
I have the following code:
using namespace System;
ref class R
{
public:
R()
{
Console::WriteLine("In R");
}
};
int main()
{
R ^r = gcnew R;
Object ^o;
//o = %r; //causes errors.
o = r;
o = gcnew R;
}
I wrote this to understand how ^ relates to %, as * relates to & in native
c++.
But trying to reference ^r with o indirectly with %r gives compiler errors.
Any ideas?
-Don Kim
using namespace System;
ref class R
{
public:
R()
{
Console::WriteLine("In R");
}
};
int main()
{
R ^r = gcnew R;
Object ^o;
//o = %r; //causes errors.
o = r;
o = gcnew R;
}
I wrote this to understand how ^ relates to %, as * relates to & in native
c++.
But trying to reference ^r with o indirectly with %r gives compiler errors.
Any ideas?
-Don Kim