【在 P********e 的大作中提到】 : array^ arr; : what does this ^ mean
K*****n 发帖数: 65
3
My guess it is C++ managed code. Quote
void _tmain()
{
//The ^ punctuator represents a handle
String^ str = "Hello World";
Console::WriteLine(str);
}
The ^ punctuator (pronounced as cap) represents a handle to a managed object
. According to the CLI specification a handle is a managed object reference.
Handles are the new-syntax equivalent of __gc pointers in the MC++ syntax.
Handles are not to be confused with pointers and are totally different in
nature from pointers.