I was reading Brian Johnson’s Weblog and there was a comment by Ramon de Klein where he expressed unhappiness with the addition of so many new keywords in C++/CLI. I replied to Ramon saying that there were essentially just three new keywords that might clash with existing code – nullptr, gcnew and generic.
And just to prove my point I typed in a simple for loop into a test program and used some of the contextual identifiers as variable names. It compiled of course, but what made the whole thing funny was that the VC++ syntax colorizer was not able to identify their context and showed them in blue (as keywords) and this obviously produced some curious looking color-formatted code.
My blog’s syntax colorizer (developed by Jambo Johnson) also results in the same funny looking code and I thought I’d include it here for you all to see π
int finally = 0;
int delegate = 6;
for(int abstract=0; abstract<10; abstract++)
{
finally += abstract * delegate;
}
You will indentify the humor only if you’ve used VC++ for a while now and are used to the syntax colorizer, because only then will the fact that everything is in blue (keyword color) will strike you flat on your face π
It looks so very beautiful, Nish π
Yup, it does. It did in VS.NET Whidbey too! π
Pretty, I think im going to start naming my variables like that π – Whidbey eh? One day I will get past vs.net2002.
Nnamdi, I seriously doubt if C# lets you do that [I assume you wanna do this in C#]
270 is quite “square free”
If you divide by 10, it becomes a cube though.
You were right nish, C# doesnt let you do it π¦