View Single Post
Old May 26th, 2006, 7:14 PM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
For completeness, you have to have a definition of a statement list, which requires a definition of a statement. The definition of a statement may require additional definitions. Then, if you have one, and only one, 'begin', followed by any number of valid statements, followed by an "end", then the expression is okay. There may be some definition of whether or not zero statements is acceptable. I don't think you'll find that the evaluation of that expression is going to qualify for your assignment, but I may be wrong.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote