Version française
Home     About     Download     Resources     Contact us    
Browse thread
Upgrading sexplib-2.7.0 to camlp4 3.10
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Re: Upgrading sexplib-2.7.0 to camlp4 3.10
This replacement compiles.

Should I assume it to be correct?

let tuplify_exprs _loc = function
   | [] -> assert false
   | [expr] -> expr
   | exprs -> <:expr< ( exprs ) >>

On Apr 30, 2007, at 8:44 PM, Joel Reymont wrote:

> let tuplify_exprs _loc = function
>   | [] -> assert false
>   | [expr] -> expr
>   | exprs -> <:expr< ( $list:exprs$ ) >>

--
http://wagerlabs.com/