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 HAA30886; Thu, 13 Sep 2001 07:23:24 +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 HAA30485 for ; Thu, 13 Sep 2001 07:23:22 +0200 (MET DST) Received: from jupiter.duonix.com ([211.41.0.239]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f8D5NJP21937 for ; Thu, 13 Sep 2001 07:23:21 +0200 (MET DST) Received: from hama (hama.duonix.com [192.168.1.30]) by jupiter.duonix.com (8.11.2/8.11.2) with SMTP id f8D5Nsi09501 for ; Thu, 13 Sep 2001 14:23:55 +0900 Message-ID: <001801c13c14$9c2530a0$1e01a8c0@hama> From: "SooHyoung Oh" To: "caml-list" Subject: [Caml-list] Obsoluted?: stream matching Date: Thu, 13 Sep 2001 14:26:14 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk It seems that stream matching has been obsoluted, at least in Ocaml 3.02. Right? # let next = function [< 'x >] -> x | [<>] -> raise (Failure "end of stream") ;; Syntax error Instead of the stream pattern matchng, do they have to use "peek" & "junk"? # let next s = match Stream.peek s with Some x -> Stream.junk s; x | None -> raise (Failure "end of stream") ;; p.s.: Where can I find the LATEST document of Ocaml 3.02? It's VERY VERY DIFFICULT to follow it by trial and error. --- SooHyoung Oh ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr