I have the following piece of code:
/*
string x = "this is a */ test string"
*/
Question
Why */ in the string: "this is a */ test string ends the multi-line comment and thus making the code un-compilable?
Notes
- I know how to overcome that but I'm more interested in why was it defined that way?
 - this issue is generated due to string translation. translating this string 
abcdwith this translation mappinga->1, b->*, c->/, d->2generates this string1*/2which lead to this issue (when the string is defined within multi-line comment). 
Aucun commentaire:
Enregistrer un commentaire