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 BAA22500; Fri, 23 Aug 2002 01:53:11 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA22622 for ; Fri, 23 Aug 2002 01:53:10 +0200 (MET DST) Received: from leia.mandrakesoft.com (office.mandrakesoft.com [195.68.114.34]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7MNr9X00378 for ; Fri, 23 Aug 2002 01:53:09 +0200 (MET DST) Received: by leia.mandrakesoft.com (Postfix, from userid 505) id 7D16440E0; Fri, 23 Aug 2002 01:51:50 +0200 (CEST) To: Dimitri Ara Cc: caml-list@inria.fr Subject: Re: [Caml-list] Calling a function with a self-defined type as argument References: <87y9azy7h3.fsf@corwin.mutu.net> From: Pixel Date: 23 Aug 2002 01:51:49 +0200 In-Reply-To: <87y9azy7h3.fsf@corwin.mutu.net> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Dimitri Ara writes: > > let _ = x Line( "reuruhjf" ) ;; > > This last one does not work: => "This function is applied to too many arguments" has it been considered adding a syntactical rule disallowing/warning expr1 expr2( ... ) when there is no space better "expr2" and "(" ?? This exception in the syntax may be ugly, but useful! or is this syntax used? at least not in the code I tested (including ocaml source): % perl -ne 'print "$ARGV: $_" if /(\w+)\s+\w+\(/ && $1 !~ /^(let|with|in|if|then|else|match|function|try|do|module|begin)$/' `find -name "*.ml"` ... (only matching lines are comments) ------------------- 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