In VC++ 2005, I have something like this;
With me wanting to call my variable 'where'. Peculiarly, the editor colored the identifier 'where', but allowed me to compile it. Is there something crazy going on?Code:type where;
In VC++ 2005, I have something like this;
With me wanting to call my variable 'where'. Peculiarly, the editor colored the identifier 'where', but allowed me to compile it. Is there something crazy going on?Code:type where;
It's a keyword in C++/CLI which VC++ can compile if you tell it to.
It's also a proposed keyword in C++0x so I'd avoid using it as an identifier.
You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.
What would it mean?
I believe it will be used for early type checking of template arguments. Something that is missing from the current specification.
However some discussions seem to indicate the introduction of 'where' as a keyword is unlikely. There is too much code that uses it as identifiers. Think of geographic software for instance...
An alternative seems to be requires
EDIT: http://www.open-std.org/jtc1/sc22/wg...006/n2105.html
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Microsoft C++ IDE is for both C++ and C++/CLI. So it paints "where" word. It is a keyword in C++/CLI and undeclared word in C++.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
> Microsoft C++ IDE is for both C++ and C++/CLI. So it paints "where" word.
Nope.
I think even Microsoft IDE is smart enough not to use one language parser on a project file of another language.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Wrong, it is not.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
Oh boy! You seem so sure of yourself, don't you?
Do yourself a favor and open a native C++ project on your editor and type C#'s 'base' or C++/CLI's 'generic'.
EDIT: BTW, other editors also colorize 'where'. The answer why was already given by Cat on his second paragraph.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Lol, why you didn't try that yourself? It could prevent you from posting your last post. It paints the generic. Because the IDE doesn't know if you will compile the code with /clr or not.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C