Top Level '^'

Apr 24, 2011 at 10:16am
closed account (3TXyhbRD)
I've got a question. Is the Top Level '^' a pointer? If not can it be used like a pointer? Many thanks.
Apr 24, 2011 at 2:20pm
In C++/CLI it's the pointer dereference operator, in C++ it's binary XOR.
Apr 24, 2011 at 2:57pm
closed account (3TXyhbRD)
So it's a pointer?
Apr 24, 2011 at 3:10pm
closed account (z05DSL3A)
No it is not a pointer, it is a handle.
http://en.wikipedia.org/wiki/C%2B%2B/CLI
Apr 24, 2011 at 3:19pm
Sorry, didn't know there was a difference. I only know CLI from hearsay :O
Apr 24, 2011 at 6:26pm
closed account (3TXyhbRD)
Ok. So in the standard C++ '*' signs a pointer. In C++/CLI '^' signs a handle which is the same as a standard C++ pointer until a certain point (instead of 'new' you have 'gcnew' and you don't have to worry about 'delete'. Right?). If that is so, is it me or this (C++/CLI) starts to look like a carefully tidied up C++?
Apr 24, 2011 at 7:56pm
It's just you.
Apr 24, 2011 at 9:17pm
I believe C++/CLI is garbage collected; standard C++ is not. I imagine there are other differences as well.
Apr 24, 2011 at 11:44pm
closed account (z05DSL3A)
In C++/CLI '^' signs a handle which is the same as a standard C++ pointer until a certain point...

It is not a pointer or similar to a pointer. A handle is a reference in the .net framework. It allows the system resources to know what you are referring to when it is passed in an API call.
Apr 25, 2011 at 9:11am
closed account (3TXyhbRD)
Okay that's clear to me now. Thanks! :D
Topic archived. No new replies allowed.