c++ - 'default' as a variable name -
while debugging code, came across array named default
. thought keywords not allowed variable names.
#include "stdafx.h" #include <stdio.h> int main() { int default = 5; printf("%d\n", default); return 0; }
now above code compiles without hitch on vs 2008. isn't 'default' keyword? how come works variable name? side-effects?
ps: infragistics::win::ultrawintoolbars::toolbarscollection
has property name!
it's known issue in vc++. by-design c++/cli compatibility.
Comments
Post a Comment