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 RAA14692; Tue, 8 Apr 2003 17:36:12 +0200 (MET DST) 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 RAA14681 for ; Tue, 8 Apr 2003 17:36:10 +0200 (MET DST) Received: from epexch01.qlogic.org ([63.170.40.3]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h38Fa9X22738 for ; Tue, 8 Apr 2003 17:36:09 +0200 (MET DST) Received: from epmailtmp.qlogic.org ([10.20.33.254]) by epexch01.qlogic.org with Microsoft SMTPSVC(5.0.2195.5329); Tue, 8 Apr 2003 10:36:22 -0500 Received: from [10.20.33.146] ([10.20.33.146]) by epmailtmp.qlogic.org with Microsoft SMTPSVC(5.0.2195.4905); Tue, 8 Apr 2003 10:36:21 -0500 Date: Tue, 8 Apr 2003 10:39:40 -0500 (CDT) From: Brian Hurt X-X-Sender: Reply-To: Brian Hurt To: Damien cc: Subject: Re: [Caml-list] single-line comment request In-Reply-To: <20030408172805.164bcf63.Damien.Pous@ens-lyon.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 08 Apr 2003 15:36:22.0044 (UTC) FILETIME=[9B5895C0:01C2FDE4] X-Spam: no; 0.00; qlogic:01 caml-list:01 damien:01 nickolay:01 weis:01 ocaml:01 lisp:01 emacs:01 wrote:03 let:04 guess:06 brian:06 maybe:06 typed:07 difficult:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 8 Apr 2003, Damien wrote: > On Tue, 8 Apr 2003 17:56:05 +0500 Nickolay Semyonov-Kolchin wrote: > > Hi, > hello > > > I really want single-line comment in Ocaml. Peter Weis (sorry, if I > > typed name wrong) several time ago said that "there is no suitable > > character for single line comment". Why don't use double '#'? I.e. > > '##'. ## Single line comment > > let _ = ## Another single line comment > > ... > maybe some emacs/vi guru could write a shortcut that [un]comment a > single line... > I am not used to Lisp, but I guess it shouldn't be difficult. > > damien > In vi: :%s/##\(.*\)$/(*\1 *)/ Brian ------------------- 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