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 XAA10228; Tue, 13 Feb 2001 23:24:58 +0100 (MET) 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 XAA10237 for ; Tue, 13 Feb 2001 23:24:57 +0100 (MET) Received: from web12202.mail.yahoo.com (web12202.mail.yahoo.com [216.136.173.86]) by nez-perce.inria.fr (8.11.1/8.10.0) with SMTP id f1DMOur21199 for ; Tue, 13 Feb 2001 23:24:56 +0100 (MET) Message-ID: <20010213222451.40437.qmail@web12202.mail.yahoo.com> Received: from [155.246.1.104] by web12202.mail.yahoo.com; Tue, 13 Feb 2001 14:24:51 PST Date: Tue, 13 Feb 2001 14:24:51 -0800 (PST) From: maulin shah Subject: [Caml-list] stack To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk hi all, I am a student and learning ocaml. need help for one problem of Unbound value stack here is my code. type ins =PUSH of float| IADD|ISUB;; type stack = ins list;; type opn = Add|Sub;; type exp = Num of float | Opn of exp* opn *exp;; let rec compile exp= match exp with Num x-> (PUSH x)::stack |Opn e1,Add,e2 -> compile e2, compile e1, (IADD)::stack;; gives error : unbound value stack???? could any one clrify this??? thanks maulin __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr