Language/C&C++ 2009.05.15 22:30
Constructor doesn't give return value!.
Yes, we can pass pointer as parameter and get value. But it's not good shape.
So, we shouldn't write code that may prevent class from instanciation in constructor. And, we may need additional interface for initializing that can give return value - like 'int init()'.
|[C/C++] classifing function return value type... (0)||2009.09.02|
|[C/C++] new operator... deeper.... (0)||2009.08.24|
|[C/C++] Remind! Limitation of constructor; It doens't give return value!.. (0)||2009.05.15|
|[C/C++] 'const' keyword. (0)||2009.03.11|
|[C/C++] What is 'variable'?? (0)||2009.01.24|
|[C/C++] Try to avoid cross-dependency between selective-compile-switches. (0)||2008.12.14|