Alias and Tuple patterns

From: Yann Coscoy (Yann.Coscoy@sophia.inria.fr)
Date: Wed Jan 29 1997 - 11:35:47 MET


Message-Id: <199701291035.LAA04724@capa.inria.fr>
To: caml-list@inria.fr
Subject: Alias and Tuple patterns
Date: Wed, 29 Jan 1997 11:35:47 +0100
From: Yann Coscoy <Yann.Coscoy@sophia.inria.fr>

(************************ french *********************************)

Il y a un comportement du parser que je trouve plutot bizarre :

(<pat1>, <pat2> as a, <pat3>)

est lu comme :

(((<pat1>, <pat2>) as a), <pat3>).

Je m'attendrais plutot a :

(<pat1>,(<pat2> as a),<pat3>).

   Yann Coscoy

(*************************** english *******************************)

The parser has a stange behaviour :

(<pat1>, <pat2> as a, <pat3>)

is understood as :

(((<pat1>, <pat2>) as a), <pat3>).

I was expecting :

(<pat1>,(<pat2> as a),<pat3>).

   Yann Coscoy



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:09 MET