minor Block-Comment Bug/Problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

minor Block-Comment Bug/Problem

Mike Cowlishaw-2
This behaviour is correct -- quotes are ignored inside comments; consider, for
example:

    a=b/0    /* Isn't this silly? */

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Mike Cowlishaw, IBM Fellow, IBM UK Laboratories
mailto:[hidden email]   [http://www2.hursley.ibm.com]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

RE: minor Block-Comment Bug/Problem

Patrick McPhee-3
Kai Schmidt wrote

> I am able to put a line comment in front, but I am not able to put a
> block comment arround. The program refuses to compile.
>
> content= "image/gif, image/x-xbitmap, image/jpeg, */*\r\n"
>
vs
> /*
> content= "image/gif, image/x-xbitmap, image/jpeg, */*\r\n"
> */
>
Please note that what you've written here is (after stripping out the
comment)
 *\r\n"
 */

which is not valid.

Once you're inside a comment, the stuff you write is commentary, so
things like strings don't make any difference -- when you hit the
end-of-comment token, the comment is over.

--
Patrick TJ McPhee
DataMirror Corporation
[hidden email]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>