Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Pattern matching missing (or brain damage?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alessandro Baretta <alex@b...>
Subject: Re: [Caml-list] Pattern matching missing (or brain damage?)


William Lovas wrote:
> 
> This is legal.  It's covered in the Chapter 6 of the manual, under
> Patterns, sub-heading ``Or'' patterns:
> 
>     http://caml.inria.fr/ocaml/htmlman/manual014.html
> 
> You might be having trouble if your subpatterns don't bind exactly 
> the same variables...

Many thanks to both William and Michael.

No, I was not having trouble with the bindings, since I was 
only checking the variant tag. The problem is that I'm still 
writing code at 3 in the morning. But at last I got it to 
compile, yeah! Tomorrow, debugging...

Alex

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners