Version française
Home     About     Download     Resources     Contact us    
Browse thread
Record types "with" syntax and camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gabriel Kerneis <gabriel.kerneis@e...>
Subject: Record types "with" syntax and camlp4
--Sig_QP1ihab8eHaQKuy.PRkxMYw
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi,

the { x with y =3D z} syntax seems to be broken in camlp4. But i can't
find any information about it in the (deprecated ?) camlp4 manual.

19:29 gabriel % cat record.ml=20
type t =3D { a : int ; b : float } ;
value x =3D=20
  let s =3D {a=3D5 ; b=3D 1.5} in
     {s with b =3D 4.1}  ;

19:29 gabriel % camlp4rf record.ml =20
File "record.ml", line 4, characters 8-12:
Parse error: [fun_binding] expected after [label_longident] (in
[label_expr])=20
zsh: exit 2     camlp4rf record.ml

Any hint ?

Thanks a lot,
--=20
Gabriel Kerneis


--Sig_QP1ihab8eHaQKuy.PRkxMYw
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF3JC/6a2JmXQu5bYRAhYgAJ43VnCF91ZW9teHJjzQ5gn0kI+bowCgrCXC
+yTNlLZee5lg3og+XMm+muw=
=dOV1
-----END PGP SIGNATURE-----

--Sig_QP1ihab8eHaQKuy.PRkxMYw--