Firstly, I have fairly strong objections to the Stroustrup miscuddling (`int* x'). Secondly, I can think of a good reason to want to declare different levels of indirection in one line.
Consider the common case of building a list in the correct order.
(no subject)
Date: 2006-04-11 10:38 am (UTC)Consider the common case of building a list in the correct order.
node *n, *head, **tail = &head; thing x; while ((x = getthing()) != END_MARKER) { n = CREATE(node); n->thing = x; *tail = n; tail = &n->next; } *tail = 0;It just looks silly to me to have to declare head and tail on different lines just because of the difference in indirection levels.Oh, and thirdly, C++ references are just evil and wrong.
(no subject)
Date: 2006-04-11 11:12 am (UTC)(no subject)
Date: 2006-04-11 11:46 am (UTC)