Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] checking for same ctor type?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-06-28 (03:04)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] checking for same ctor type?

>let ctor_equal a b = 
>  match a,b with 
>  String(_),String(_) | Float(_),Float(_) -> true | _,_ -> false

Right, I should have added "without writing out all the cases".  :)

> Yes, but there's only one implementation, right? 

Unless they never update it again, then "implementation dependent" is usually a bad thing, in my book (and the ocaml folks shouldn't want people depending on implementation details either, since it makes their lives miserable when it comes time to update stuff).


Bug reports:  FAQ:
To unsubscribe, mail  Archives: