(no subject)

Date: 2006-04-11 10:38 am (UTC)
From: [identity profile] sevenstring.livejournal.com
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.
  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)
simont: A picture of me in 2016 (Default)
From: [personal profile] simont
"miscuddling" has to be the best word I will encounter all day!

(no subject)

Date: 2006-04-11 11:46 am (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
Sounds like a challenge to someone...

November 2025

S M T W T F S
      1
2345678
91011121314 15
1617 181920 2122
23242526272829
30      

Most Popular Tags

Expand Cut Tags

No cut tags