From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA26991; Wed, 17 Dec 2003 18:02:34 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA27126 for ; Wed, 17 Dec 2003 18:02:33 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hBHH2WH12716 for ; Wed, 17 Dec 2003 18:02:32 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AWf4B-00082y-00 for ; Wed, 17 Dec 2003 17:02:31 +0000 Date: Wed, 17 Dec 2003 17:02:31 +0000 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Quotes in comments: (* " *) Message-ID: <20031217170231.GA30848@redhat.com> References: <20031217152232.GA29912@redhat.com> <20031217165435.069eb702.nguyen@bk.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <20031217165435.069eb702.nguyen@bk.ru> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 quoting:01 justified:01 bug:01 printf:01 freshmeat:01 ltd:98 compiler:01 compiler:01 ocaml:01 ocaml:01 caml:01 behaviour:01 perl:03 let:04 X-Attachments: type="application/pgp-signature" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've had a few replies along the lines that "(*" or "*)" is valid code, and hence all this quoting comments stuff is justified. I have to say that writing such code is amazingly rare (perhaps only compiler writers will write this, and then only once in their lives), whereas I've encountered the problems with quotes in comments routinely since I started using OCaml. I doubt I'm alone in this. I actually have a small collection of programs now which have lines like this: (* ... some comment which contains an odd number of quotes ... [Keep OCaml compiler happy -->] " *) I think the behaviour is counter-intuitive, and should be classified as a bug, along with the other annoyance of being unable to write let f =3D printf "** %i" and have it do what you expect. Rich. --=20 Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment Learning Objective CAML for C, C++, Perl and Java programmers: http://www.merjis.com/richj/computers/ocaml/tutorial/ --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/4Iwn4le1M6q9pzoRAo9rAJsHkrnHU2jUUQE+2vg24Hczz5CELACg3ypY 9mFMAZgEiWsr0sFlf5hjJzg= =4o2I -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners