Browse thread
camlp4: How to make a record expression w/o useless "with"
-
Richard Jones
- Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] camlp4: How to make a record expression w/o useless "with" |
On Mon, Aug 11, 2008 at 05:49:25PM +0100, Richard Jones wrote:
> I have some code like the minimal example below. Notice the
> '{ () with ... }'
> record expression. If I remove the '() with' part, it fails to
> compile.
For reference, Bluestorm found an answer to my question, by building
the AST explicitly:
let build_record _loc rbs =
Ast.ExRec (_loc, rbs, Ast.ExNil _loc)
Rich.
--
Richard Jones
Red Hat