List Info

Thread: "ocaml_beginners"::[] What is the idea behind requiring strings to be whole in comments?




"ocaml_beginners"::[] What is the idea behind requiring strings to be whole in comments?
user name
2006-09-10 16:41:45
Am Sun, 10 Sep 2006 15:53:19 -0000
schrieb "jcriddle4" <jcriddle4yahoo.com>:

> 
> (* Why does this program get an error of "This
comment contains an
> unterminated string literal? *)

comments are nestable, so you have to parse over strings to
be able to
do it.
In c/c++ you get an error with such comments:

/* "closing token in string: */ gives error"  */

cheers,
 Michael


Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http:/
/groups.yahoo.com/group/ocaml_beginners/

<*> To unsubscribe from this group, send an email to:
    ocaml_beginners-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 



[1]

about | contact  Other archives ( Real Estate discussion Medical topics )