intrinsic,primitive types
|
Light Poster
|
|
| 5May2008,21:32 | #1 |
|
When initializing non-static data members of built-in / intrinsic / primitive types, should I use the "initialization list" or assignment.....????
|
|
Go4Expert Founder
|
![]() |
| 6May2008,09:09 | #2 |
|
These days it does not make much of a difference because PC are more than what the benefit it gives for initialization list and assignments.
At least from practicality point of view I prefer assignments because it makes code cleaner and I don't have to think more when I edit the class with new data members. |
|
TechCake
|
|
| 6May2008,09:41 | #3 |
|
Quote:
Originally Posted by shabbir |
|
Go4Expert Founder
|
![]() |
| 6May2008,10:08 | #4 |
|
I agree but as the thread is in C-C++ forum its expected not to be in that language but yes its not impossible.
|
|
TechCake
|
|
| 6May2008,11:37 | #5 |
|
Quote:
Originally Posted by shabbir But I am talking in same langauges C++ only but i mean processorlike MPC,i960 etc for embedded software. It's not like core dual, p4 etc. You are absolutely right Last edited by asadullah.ansari; 6May2008 at 14:57.. |

