Thursday, June 20, 2013

Compilation of awkward syntax

Newsgroups:    comp.lang.c++
    Date:    Sat, 27 Apr 2013 05:58:11 -0700 (PDT)
    Subject:    Compilation of Awkward Syntax
    From:    Joe Snodgrass <vaughan.andursen@.com>


View all of the computer language help forums at pocketbinaries.com.

I've almost finished teaching myself C++, but there's one last step I
have to take.  I need to teach myself all the situations that require
one to use a strange looking combination of operators.

One example of a strange looking combination of operators that I
managed to work through is

tmp=(Node<int>*)ptr,

You can see that the >* is nothing like anything that would have been
seen in any previous (or structured) language.

I seem to recall seeing this sort of awkward syntax in several
different situations, when I read 2nd edition of Stroustrup, not just
this situation.

Does anybody know if someone has assembled a cheat sheet to pull them
all together in one place?  TIA.

No comments:

Post a Comment