×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Nonsense: C++ standard limerick

Chacham (981) writes | more than 4 years ago

It's funny.  Laugh. 5

Rhymes show up in strange places, like the (Penn.) State Supreme Court opinion. Well, the C++ standard (page 279, penultimate paragraph, ultimate sentence) has the following limerick:

Rhymes show up in strange places, like the (Penn.) State Supreme Court opinion. Well, the C++ standard (page 279, penultimate paragraph, ultimate sentence) has the following limerick:

When writing a specialization, be careful about its location; or to make it compile will be such a trial as to kindle its self-immolation.

.

5 comments

Still don't have a copy. (1)

Short Circuit (52384) | more than 4 years ago | (#28786637)

I still don't have a copy, though I've wanted one. I found a cheap distributor in ANSI, but the EULA for it is incredibly restrictive. Under a strict enough reading, you can't even put the damned thing on a flash drive.

I also liked... (1)

Bill Dog (726542) | more than 4 years ago | (#28790401)

...the rest of that paragraph (that precedes your quoted sentence), when I discovered the rest of the paragraph was actually all one sentence!

The placement of explicit specialization declarations for function templates, class templates, member functions of class templates, static data members of class templates, member classes of class templates, member class templates of class templates, member function templates of class templates, member functions of member templates of class templates, member functions of member templates of non-template classes, member function templates of member classes of class templates, etc., and the placement of partial specialization declarations of class templates, member class templates of non-template classes, member class templates of class templates, etc., [BD's hint: You're gonna want to take a breath here!] can affect whether a program is well-formed according to the relative positioning of the explicit specialization declarations and their points of instantiation in the translation unit as specified above and below.

Try saying that first clause ten times fast!

No wonder the people who actually read (and argue over) the spec are called "language lawyers".

Re:I also liked... (1)

Chacham (981) | more than 4 years ago | (#28790519)

Heh, when i showed it to a friend this morning, he made the same comment. :)

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Sign up for Slashdot Newsletters
Create a Slashdot Account

Loading...