Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!bloom-beacon!usc!csun!csuna!abcscnuk From: abcscnuk@csuna.csun.edu (Naoto Kimura) Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo Pascal bug? or feature? Message-ID: <1964@csuna.csun.edu> Date: 14 May 89 14:06:33 GMT References: <24349@agate.BERKELEY.EDU> Reply-To: abcscnuk@csuna.csun.edu (Naoto Kimura) Organization: CSU Northridge Lines: 27 In article <24349@agate.BERKELEY.EDU> ephram@violet.berkeley.edu () writes: >Here is what I consider a minor bug with turbo pascal (V.5.0 maybe 4 others >untested). It has to do with comments. The basic problem is with nesting >comments of the same "type", ie { or (*. The code that follows illustrates >some of my gripe. > > ... (examples deleted) ... > >Ephram Cohen ephram@violet.berkeley.edu It isn't a bug... It differentiates between the different types of comments ( {blah} vs (*blah*) ). This feature allows nesting of comments (by using a different type of comment around the other comments. This of course, is highly non-standard (standard says that the two comment types are equivalent, so you can have a comment that looks like {this*) or (*even this} ). Besides, nested comments are non-standard anyway. If you're resorting to commenting out sections of code for some purpose, why not use the conditional compilation feature of Turbo Pascal? //-n-\\ Naoto Kimura _____---=======---_____ (abcscnuk@csuna.csun.edu) ====____\ /.. ..\ /____==== // ---\__O__/--- \\ Enterprise... Surrender or we'll \_\ /_/ send back your *&^$% tribbles !!