From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 84269BB83 for ; Tue, 4 Jul 2006 23:43:15 +0200 (CEST) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.199]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k64LhFwu029612 for ; Tue, 4 Jul 2006 23:43:16 +0200 Received: by nz-out-0102.google.com with SMTP id z3so560720nzf for ; Tue, 04 Jul 2006 14:43:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ucNz7OoKJXPXpEMdAfcscWex6rHUswUxASz7tK9YFEFAG6OO3NSKwylnxQBn9m14i5IdG56yQ2p9vdXzzPo5Qn09DkYO9Rfse48JFXllQpa31YpvL/eqlwb7ZhYplkDGxN5k/3pa7wwhab/YF2yDaX5RZOO7VgUP+kqU3RcEbIc= Received: by 10.36.12.12 with SMTP id 12mr4009795nzl; Tue, 04 Jul 2006 14:43:14 -0700 (PDT) Received: by 10.36.101.10 with HTTP; Tue, 4 Jul 2006 14:43:14 -0700 (PDT) Message-ID: Date: Wed, 5 Jul 2006 09:43:14 +1200 From: "Jonathan Roewen" To: OCaml Subject: [Caml-list] revised syntax and immediate objects MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 44AAE0F3.000 on nez-perce : j-chkmail score : X : 0/20 1 X-Miltered: at nez-perce with ID 44AAE0F3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; syntax:01 syntax:01 ocaml:01 camlp:01 camlp:01 cmo:01 cmo:01 impl:01 expr:01 caml-list:01 int:01 caml:02 output:02 revised:02 revised:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP autolearn=disabled version=3.0.3 Hi, What is the syntax for immediate objects in ocaml when using revised syntax? I was reading the camlp4 tutorial from the caml site, and the section on objects just directs users to use camlp4o pr_r.cmo to dump an example in revised syntax. The snippet of input code is thus: let obj a b c = object method a : int = a method b : string = b method c : string option = c end;; The output from camlp4o pr_r.cmo gives: value obj a b c =; I'd like to try make a camlp4 syntax extension that uses immediate objects, and this isn't helping ;-) Jonathan