Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Why is Array highlighted in blue (Visual Studio 2007)

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
5 replies to this topic

#1 gasto   Members   

303
Like
0Likes
Like

Posted 28 May 2014 - 09:01 AM

Why is the array token highlighted in Visual Studio 2007 ver. 3.5 SP1?

Is it some kind of template mangling?
Intel Core 2 Quad CPU Q6600, 2.4 GHz. 3GB RAM. ATI Radeon HD 3400.

#2 kunos   Members   

2254
Like
6Likes
Like

Posted 28 May 2014 - 09:03 AM

*
POPULAR

Visual Studio 2007????



#3 Andy Gainey   Members   

3452
Like
1Likes
Like

Posted 28 May 2014 - 09:31 AM

Sounds like the joy of C++/CLI (.NET) infecting the syntax highlighting of ordinary C++ code.  (MSDN:  Arrays, C++ Component Extensions)  The same thing always bugged me about the token event.  Never did find a way to turn off the non-standard C++ syntax highlighting, but I don't recall looking too hard.  If you search around, you might find something.


Edited by Andy Gainey, 28 May 2014 - 11:03 AM.


"We should have a great fewer disputes in the world if words were taken for what they are, the signs of our ideas only, and not for things themselves." - John Locke

#4 gasto   Members   

303
Like
0Likes
Like

Posted 28 May 2014 - 10:04 AM

Visual Studio 2007????


What's so wrong about the version?
Intel Core 2 Quad CPU Q6600, 2.4 GHz. 3GB RAM. ATI Radeon HD 3400.

#5 DoctorGlow   Members   

1775
Like
5Likes
Like

Posted 28 May 2014 - 10:10 AM

*
POPULAR

It does not exist, maybe you meant 2005 or 2008 (http://en.wikipedia.org/wiki/Microsoft_Visual_Studio). And it's 2014 dry.png


Edited by DoctorGlow, 28 May 2014 - 10:10 AM.


#6 frob   Moderators   

44043
Like
4Likes
Like

Posted 28 May 2014 - 03:24 PM

It is hilighted based on the rules specified in the syntax hilighting. You can modify usertype.dat if you want more stuff colored.

As for the reason it is included, the language evolved again and std::Array is part of it. Visual Studio picks up the word Array and colors it accordingly. C++ has evolved multiple times, with the language standards or standard additions coming in 1998 (standard), 2003 (standard), 2005 (addendum), 2007 (addendum), 2011 (standard). C++14 (a standard) is just about to be signed off, and C++17 is already a working draft.

Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.

Also check out my personal website at bryanwagstaff.com, where I occasionally write about assorted stuff.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.