Home Segments Index Top Previous Next

95: Mainline

You cannot place a comment inside another comment. If you try, you find that the inner comment's first double-quotation mark terminates the outer comment, and your Smalltalk compiler misconstrues your intentions, and sees the inner comment uncovered:

"   <-----------------------------------* 
                                        | First quotation mark of outer 
First part of outer comment ...         | comment matches first 
                                        | quotation mark of inner 
"  -------------------------------------* comment 

Inner comment ... <---------------------- Inner comment is exposed 

"  -------------------------------------* 
                                        | Second quotation mark of  
Second part of outer comment ...        | inner comment matches second  
                                        | quotation mark of outer 
"   <-----------------------------------* comment