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 UAA00357; Wed, 17 Dec 2003 20:14:30 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA00175 for ; Wed, 17 Dec 2003 20:14:28 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hBHJEMH23665; Wed, 17 Dec 2003 20:14:22 +0100 (MET) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA00389; Wed, 17 Dec 2003 20:14:21 +0100 (MET) From: Pierre Weis Message-Id: <200312171914.UAA00389@pauillac.inria.fr> Subject: Re: [Caml-list] Python's yield, Lisp's call-cc or C's setjmp/longjmp in OCaml In-Reply-To: <87y8tbvii9.fsf@student.uni-tuebingen.de> from Falk Hueffner at "Dec 17, 103 11:35:58 am" To: falk.hueffner@student.uni-tuebingen.de (Falk Hueffner) Date: Wed, 17 Dec 2003 20:14:21 +0100 (MET) Cc: caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; pierre:01 weis:01 pierre:01 weis:01 caml-list:01 python's:01 lisp's:01 c's:01 cristal:01 ocaml:01 problem:07 examples:07 solve:07 function:09 successively:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk [...] > This only works for simple examples. Try for example writing a > function which successively yields all possible moves for a chess > board. The "yield" operator really helps there. Very interesting: please give us the code corresponding to this example, in order for us to realize how the full power of the "yield" operator helps to solve this problem. Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- 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