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 DAA14365; Fri, 19 Oct 2001 03:51:45 +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 DAA14354 for ; Fri, 19 Oct 2001 03:51:43 +0200 (MET DST) Received: from smtp3-cm.mail.eni.net (smtp3-cm.mail.eni.net [216.133.226.136]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f9J1pg126668 for ; Fri, 19 Oct 2001 03:51:42 +0200 (MET DST) Received: from CHECKERATH (node-d8e9cca2.powerinter.net [216.233.204.162]) by smtp3-cm.mail.eni.net (8.9.3/8.9.3) with SMTP id SAA21777 for ; Thu, 18 Oct 2001 18:51:40 -0700 Date: Thu, 18 Oct 2001 18:51:40 -0700 Message-Id: <200110190151.SAA21777@smtp3-cm.mail.eni.net> From: Chris Hecker To: caml-list@inria.fr Subject: [Caml-list] "toggle" for Pervasives? Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm sure putting more stuff in Pervasives is frowned upon, but I find myself doing this all the time and it fits well with incr and decr: let toggle bool_ref = bool_ref := not !bool_ref Chris ------------------- 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