4 ms·
Uh, why is this not a compile error? I’d expect the string to be concatonated, which would result in an invalid program.
by nynx 2y ago
Uh, why is this not a compile error? I’d expect the string to be concatonated, which would result in an invalid program.
- LegionMammal978 2y agoThe first string is a comment, so all the strings after it just get appended to the comment text, until it finally hits the first newline. Quite an insidious mistake.
- dkersten 2y agoThe strings are concatenated, it’s just that the first line was a comment, meaning the compiler/assembler saw all the next lines as part of the first. Comments don’t cause compiler errors, so no error here…