F Fernando A. Gómez F. Mar 4, 2009 #41 Ajay said: var reminds me of void* in C/C++. Unless there are advantages of using it, I wouldnt use it. Click to expand... Would it be like the auto keyword from C++0x?
Ajay said: var reminds me of void* in C/C++. Unless there are advantages of using it, I wouldnt use it. Click to expand... Would it be like the auto keyword from C++0x?
P Pavel Minaev Mar 4, 2009 #42 Would it be like the auto keyword from C++0x? Click to expand... It is precisely the same as plain "auto" in C++0x. It's more restrictive, too - can only be used at local scope (C++0x auto works for members, too), and you can't do partial inference (i.e. no equivalent to e.g. "auto* x = &y").
Would it be like the auto keyword from C++0x? Click to expand... It is precisely the same as plain "auto" in C++0x. It's more restrictive, too - can only be used at local scope (C++0x auto works for members, too), and you can't do partial inference (i.e. no equivalent to e.g. "auto* x = &y").