www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Commenting bug

reply Derek Parnell <derek psych.ward> writes:
The following compiles ... 

/+  /+ // +/  +/
void main() {}

But this does not ...

/+  /+ //+/  +/
void main() {}


The only difference is a space after the '//'.
I think that both should compile.

Note that this compiles fine ... 

/+  /+ /*+/  +/
void main() {}

-- 
Derek
Melbourne, Australia
15/02/2005 12:50:47 PM
Feb 14 2005
parent reply zwang <nehzgnaw gmail.com> writes:
Derek Parnell wrote:
 The following compiles ... 
 
 /+  /+ // +/  +/
 void main() {}
 
 But this does not ...
 
 /+  /+ //+/  +/
 void main() {}

Notice that the 3rd plus should be binded with the 4th slash. The code is as uncompilable as the following example: /+../+../+...+/
 
 
 The only difference is a space after the '//'.
 I think that both should compile.
 
 Note that this compiles fine ... 
 
 /+  /+ /*+/  +/
 void main() {}
 

Feb 14 2005
parent Derek Parnell <derek psych.ward> writes:
On Tue, 15 Feb 2005 10:30:52 +0800, zwang wrote:

 Derek Parnell wrote:
 The following compiles ... 
 
 /+  /+ // +/  +/
 void main() {}
 
 But this does not ...
 
 /+  /+ //+/  +/
 void main() {}

Notice that the 3rd plus should be binded with the 4th slash. The code is as uncompilable as the following example: /+../+../+...+/

Thanks...it often only takes another pair of eyes to see the blatantly obvious ;-) -- Derek Melbourne, Australia 15/02/2005 1:51:23 PM
Feb 14 2005