Is this how comments/strings are supposed to interact?
Doesn't seem very right to me.
Is this how comments/strings are supposed to interact?
Doesn't seem very right to me.
That's not a bug, its bad syntax on the coders part
When the "/*" symbol is encountered outside of a string it will look for the next ending symbol "*/".
It doesn't care about anything past the "/*" symbol since you are specifying that everything past that symbol is a comment until the ending symbol
My Avatar says: "Stay in School"
Rocco is the Boy!
"SHUT YOUR LIPS..."
No it's not a bug. It's doing exactly what you want it to do, you put a /* and it looks for the next */. Why in the hell are you doing that stuff that way anyway? If you really want to comment it out just paste it into another text file in the project and cut it from that one. And if you want to leave it in, just put a // on the line that has the */ that wasn't supposed to end the comment. They probably should have included something that looks for quotations but they didn't, not a bug, just something they didn't think of.
PHP and XML
Let's talk about SAX
ObviouslyThat's not a bug, its bad syntax on the coders part
When the "/*" symbol is encountered outside of a string it will look for the next ending symbol "*/".
It doesn't care about anything past the "/*" symbol since you are specifying that everything past that symbol is a comment until the ending symbol
but the thing is, it's in a string. I just found it odd
I had it programmed the other way in my CPP->HTML converter (strings taking precidence over comments) but I guess i'll have to change it.
It's called commenting out, you do it portions of code which are no longer needed, but may be needed in the future.No it's not a bug. It's doing exactly what you want it to do, you put a /* and it looks for the next */. Why in the hell are you doing that stuff that way anyway? If you really want to comment it out just paste it into another text file in the project and cut it from that one. And if you want to leave it in, just put a // on the line that has the */ that wasn't supposed to end the comment. They probably should have included something that looks for quotations but they didn't, not a bug, just something they didn't think of.
I don't need any alternatives, I just found this to be quite odd...
Normally when something is in a string, it's treated as a string.
>Normally when something is in a string, it's treated as a string.
think of it like this, the comment takes precedence since the opening ' " ' of the string is part of the comment, so it is not the start of a string.
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.