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 BAA32151; Fri, 22 Aug 2003 01:21:23 +0200 (MET DST) 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 BAA01010 for ; Fri, 22 Aug 2003 01:21:22 +0200 (MET DST) Received: from arda.pair.com (arda.pair.com [209.68.1.133]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id h7LNLLf29146 for ; Fri, 22 Aug 2003 01:21:21 +0200 (MET DST) Received: (qmail 32637 invoked by uid 3022); 21 Aug 2003 23:21:20 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 21 Aug 2003 23:21:20 -0000 Date: Thu, 21 Aug 2003 19:21:20 -0400 (EDT) From: Chris Hecker X-X-Sender: checker@arda.pair.com To: caml-list@inria.fr Subject: [Caml-list] end-of-block CAMLreturn? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; hecker:01 checker:01 camlreturn:01 camlreturn:01 allocations:01 camllocal:01 foo:01 foo:01 callback:01 chris:01 chris:01 caml:01 caml:01 somewhere:04 stuff:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is there a way to do a CAMLreturn without the return? From looking at memory.h it appears not, but it appears it would be easy to make a macro to do it (#define CAMLendblock local_roots = caml__frame; or something like that should work). In other words, I want to have a loop that calls back to caml, but I don't want to keep shoving more stuff on the roots list, since I don't care about the previous loop's allocations: for(i=0;i