Topic: New orthogonal syntax for initializer lists...
Author: jarrett@cs.hh.ab.com (James Jarrett)
Date: 11 Apr 1994 16:39:55 GMT Raw View
I came across an interesting syntax in Stroustrup's new book (Design and Evol...):
class A
{
int v;
public:
A(int vv) : v(vv) {}
void setV(int vv) : v(vv) {}
} ^
|
This is the interesting part.
Does the current standard proposal standardize the initialization syntax? Is
this a more efficient place to do this than within the function, as it is in
the ctor? Also, does this confuse the initialization versus assignment
discussion? Which one is this -- it's fairly obvious assignment to me?
Thanks,
Jim
Please respond by E-mail if possible.