English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
prefix ::
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-06 (22:17)
From: David Monniaux <David.Monniaux@e...>
Subject: prefix ::
Hi,

In order to east the export of Coq programs to Caml, I'd like to be able 
to tell Coq that "cons" on list is OCaml's :: operator. Unfortunately, 
it is syntactically incorrect to write:
match l with
  [] -> foobar
| ::(x,y) -> blabla

This is a little annoying. Is there anything to do about this?

Thanks,