I'm growing increasingly confused by the '^' symbol. I have been able to track it down on various sites but there is no real "definition" of it and its usage anywhere.
I am creating a .NET project these days and I bumped into the symbol for the first time in the main method:
int Main(array<String^>^ args){
// Code
return 0;
}
After a while I understood it was some "top level" operator. For example, the code
Form mainwindow = gcnew Form()
Will generate an error that you have to use the "top level" modifier '^'. So it is solved by doing..
Form^ mainwindow = gcnew Form()
So I have many questions popping in my head about this.. For example, it looks like a pointer declaration, but it clearly is not the same thing (or else they'd just use '*').
-- Is "mainwindow" variable a pointer? (It is used as a pointer.. with the -> operator)
-- Why do you have to use '^'?
In short... Can anyone explain exactly what the '^' operator is and why it is there?