Thread overview | |||||
---|---|---|---|---|---|
|
February 15, 2005 Commenting bug | ||||
---|---|---|---|---|
| ||||
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
|
February 15, 2005 Re: Commenting bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | 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() {} > |
February 15, 2005 Re: Commenting bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to zwang | 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 |
Copyright © 1999-2021 by the D Language Foundation