473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Carets

Please settle a bet for me.

Person A claims that ^ in standard C++ is used to indicate a handle.
Person B claims that standard C++ does not have handles, and that ^ is
only bitwise XOR.

Who is correct?

Thanks.
Jul 17 '08 #1
4 1271
MiB
On 17 Jul., 23:26, cfarley1...@hotmail.com wrote:
Please settle a bet for me.

Person A claims that ^ in standard C++ is used to indicate a handle.
Person B claims that standard C++ does not have handles, and that ^ is
only bitwise XOR.

Who is correct?

Thanks.
B, the bitwise XOR is correct. Person A mixes up C++ with Pascal,
where ^ is used for pointers.

Michael.
Jul 17 '08 #2
cf*********@hotmail.com wrote:
Person A claims that ^ in standard C++ is used to indicate a handle.
It's a handle (a masked pointer) in ISO C++/CLI
(see: http://en.wikipedia.org/wiki/C%2B%2B/CLI )
Person B claims that standard C++ does not have handles, and that ^ is
only bitwise XOR.
It's a bitwise XOR in all C-like languages (afaik).
Handles^ aren't available in Standard C++.

Regards

M.
Jul 17 '08 #3
MiB wrote:
On 17 Jul., 23:26, cfarley1...@hotmail.com wrote:
Please settle a bet for me.

Person A claims that ^ in standard C++ is used to indicate a handle.
Person B claims that standard C++ does not have handles, and that ^
is only bitwise XOR.

Who is correct?

Thanks.

B, the bitwise XOR is correct. Person A mixes up C++ with Pascal,
where ^ is used for pointers.
No, A is talking about that C++/CLI thing that MS dreamed up.


Brian
Jul 17 '08 #4
On Jul 18, 1:53*am, "Default User" <defaultuse...@yahoo.comwrote:
MiB wrote:
On 17 Jul., 23:26, cfarley1...@hotmail.com wrote:
Please settle a bet for me.
Person A claims that ^ in standard C++ is used to indicate a handle.
Person B claims that standard C++ does not have handles, and that ^
is only bitwise XOR.
Who is correct?
Thanks.
B, the bitwise XOR is correct. Person A mixes up C++ with Pascal,
where ^ is used for pointers.

No, A is talking about that C++/CLI thing that MS dreamed up.

Brian
yes one of those none standard platform specific extensions.

regards,
FM.
Jul 19 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ian.H | last post by:
Hi all, I'm trying to write a PHP colour parser and after various attempts, something, somewhere trips it over. Some details: String to parse: $origString = '^1foo^5bar';
2
by: - ions | last post by:
hi, i am in the procces of writing a chat program for a main Assigment, the problem im stuck on is one of the Carets position in a JTextArea, when i hit the enter key, it appends the msg to the...
5
by: Lyn | last post by:
I'm trying to get my head around regular expressions while maintaining some semblance of sanity. I'm canabalising a similar program to construct my own, and it keeps using an expression I'm not...
3
by: Dayne | last post by:
I would like to create a box-like caret for a textbox(vb.net) . Any idea. Sample code would be nice. DT
6
by: Vern | last post by:
I have a routine that sets focus to all the controls on the form so it can run the validate event for each of them. Is there a way to prevent the user from seeing the cursor go through all the...
5
by: Raj Chudasama | last post by:
I have a client server app. On the client i have buttons (derived from user contol) that let user perform actions when they are connected to the server. so when they connect (using a menuitem) i...
4
by: Thomas Richter | last post by:
Hi, I can't get of the black flicker when I resize my form. this = Mainform : System.Windows.Forms.Form If I set the size from 300 to 500 I see for ca 500ms some black areas. I try to solve it...
8
by: regis | last post by:
Greetings, about scanf matching nonempty sequences using the "%" matches a nonempty sequence of anything except '-' "%" matches a nonempty sequence of anything except ']" matches a nonempty...
224
by: Jon Slaughter | last post by:
Sorry for all the cross posting but I'm interesting in getting a serious discussion about how usenet has become lately. Many people are moving away from usenet because of all the spam and cooks...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.