User talk:132.199.97.100: Difference between revisions

OIC.
(C++/CLI)
 
(OIC.)
 
(One intermediate revision by one other user not shown)
Line 1:
Hey there. My biggest confusion regarding the C++/CLI example was the syntax I saw using the ^ operator. It looked like bitwise-not was being applied in an syntactically-incorrect fashion. I take it ^ isn't bitwise-not in C++/CLI? --[[User:Short Circuit|Michael Mol]] 13:26, 6 August 2010 (UTC)
 
: The ^ operator was never used for bitwise not in C or C++ (the bitwise not operator is ~). The binary ^ is xor, and remains to have that function in C++/CLI. However in C++/CLI, ^ can also be used in declarations to define a CLI object pointer (i.e. a pointer to a "managed" object). This is quite similar to the double use of * to mean both multiplication (2*5) and declaration of pointer (int* p), except that * can in addition be used as unary dereference operator (*p), which I don't think is possible with ^. --[[Special:Contributions/132.199.97.100|132.199.97.100]] 14:07, 6 August 2010 (UTC)
:: Gah. My error. I don't do much with bitwise operations. I see that the CLI object pointer is what confused me. Given the explicit syntactical differences, I'm thinking that C++/CLI needs to be identified as its own language. By the way; I invite you to create an account. :) --[[User:Short Circuit|Michael Mol]] 14:17, 6 August 2010 (UTC)