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 TAA23095; Tue, 17 Apr 2001 19:55:35 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA23123 for caml-list@pauillac.inria.fr; Tue, 17 Apr 2001 19:55:35 +0200 (MET DST) 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 RAA11099 for ; Thu, 12 Apr 2001 17:48:13 +0200 (MET DST) Received: from rum.cs.yale.edu (rum.cs.yale.edu [128.36.229.169]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f3CFmCT25618 for ; Thu, 12 Apr 2001 17:48:13 +0200 (MET DST) Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.0/8.11.0) id f3CFmCK15994; Thu, 12 Apr 2001 11:48:12 -0400 Received: from tequila.cs.yale.edu (localhost [127.0.0.1]) by tequila.cs.yale.edu (8.9.3/8.9.3) with SMTP id LAA14851 for ; Thu, 12 Apr 2001 11:47:37 -0400 To: caml-list@inria.fr From: "Stefan Monnier" Newsgroups: lists.caml Subject: Re: [Caml-list] How do I define prog1? References: <20010412003442E.garrigue@kurims.kyoto-u.ac.jp> Date: 12 Apr 2001 11:47:34 -0400 Message-ID: <5leluyqfvt.fsf@rum.cs.yale.edu> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Path: rum.cs.yale.edu NNTP-Posting-Host: rum.cs.yale.edu X-Trace: 12 Apr 2001 11:47:34 -0400, rum.cs.yale.edu Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >>>>> "Mattias" == Mattias Waldau writes: > I would like to define a (prog1 a b) which first evaluates a, then b, and > returns the value of a. Since Caml's order of evaluation is unspecified, I don't think there's any other solution than to use a CamlP4 macro. Stefan ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr