From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA28151 for caml-redistribution; Tue, 23 Feb 1999 15:53:18 +0100 (MET) 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 TAA26204 for ; Mon, 22 Feb 1999 19:34:04 +0100 (MET) Received: from crotus.sc.intel.com (crotus.sc.intel.com [143.183.152.26]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id TAA14813 for ; Mon, 22 Feb 1999 19:34:02 +0100 (MET) Received: from mipos2.intel.com (mipos2.intel.com [143.183.48.42]) by crotus.sc.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.6 1998/11/24 22:10:56 iwep Exp iwep $) with ESMTP id KAA12330; Mon, 22 Feb 1999 10:33:48 -0800 (PST) Received: from zws197.sc.intel.com (ctchou@zws197.sc.intel.com [143.183.45.141]) by mipos2.intel.com (8.9.1a/8.9.1) with ESMTP id KAA10534; Mon, 22 Feb 1999 10:33:46 -0800 (PST) Received: (from ctchou@localhost) by zws197.sc.intel.com (8.8.6/8.8.6) id KAA21124; Mon, 22 Feb 1999 10:33:44 -0800 (PST) Date: Mon, 22 Feb 1999 10:33:44 -0800 (PST) Message-Id: <199902221833.KAA21124@zws197.sc.intel.com> From: Ching-Tsun Chou To: christo@nextsolution.co.jp CC: caml-list@inria.fr In-reply-to: <007a01be5e49$8825ba30$6f50ebca@newton> (christo@nextsolution.co.jp) Subject: Re: Warnings in ocaml Sender: weis I copied from SML and defined a procedure "ignore": let ignore k = let _ = k in () so now I would write: ignore (f x y); ... How about instead of writing: (f x y) ; (g z w) ; ... write: let _ = (f x y) in let _ = (g z w) in ... In fact, I found it scarcely necessary to use ";" these days even when I was doing imperative programming. Cheers, - Ching Tsun ===================================================================== Ching-Tsun Chou E-mail: ctchou@mipos2.intel.com Intel Corporation Tel: (408) 765-5468 3600 Juliette Lane, SC12-401 Fax: (408) 653-7933 Santa Clara, CA 95052, U.S.A. Sec: (408) 653-8849 =====================================================================