Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] revised syntax and immediate objects
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matt Gushee <matt@g...>
Subject: Re: [Caml-list] revised syntax and immediate objects
Jonathan Roewen wrote:

> Hmm, I'm getting an error trying to use class_str_item (ocaml 3.09.2):
> 
> # #use "topfind";;
> # #camlp4o;;
> # #require "camlp4.extend";;
> # open Pcaml;;
> # let gen_method loc field =
>    let obj = "obj" in
>    <:class_str_item< method $lid:field$ = $lid:obj$#$lid:field$; >>;;
> Unbound quotation: "class_str_item";;

You also need to load q_Mlast.cmo.

-- 
Matt Gushee
: Bantam - lightweight file manager : matt.gushee.net/software/bantam/ :
: RASCL's A Simple Configuration Language :     matt.gushee.net/rascl/ :