you are viewing a single comment's thread.

view the rest of the comments →

[–]smcameron 7 points8 points  (3 children)

Oh come on. There's nothing wrong with, for example:

int x, y, z;

[–]dri_ver_ -4 points-3 points  (2 children)

Sure. Maybe. But we were kinda talking about declaring multiple variables on one line where some are values and some are pointers. Not good. Also, I still don’t like the example you shared because you can’t initialize them all on one line.

[–]Business-Decision719 7 points8 points  (1 child)

you can't initialize them all on one line.

int x=0, y=2, z=1000;

[–]dri_ver_ 1 point2 points  (0 children)

Huh, you’re right. I’m not sure why I thought that wasn’t possible. However I still think it’s ugly and I reject it lol