caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] version 7 beta typing change?
@ 2003-08-09  2:03 skaller
  2003-08-09 12:10 ` Jacques Garrigue
  0 siblings, 1 reply; 24+ messages in thread
From: skaller @ 2003-08-09  2:03 UTC (permalink / raw)
  To: caml-list

Code that compiled on 3.06 doesn't work on 3.07 beta1.
Is this a bug in the old typing, in the new typing, or what?

File "lpsrc/flx_types.ipk", line 532, characters 20-42:
Constraints are not satisfied in this type.
Type 'a b0typecode_t' as 'a should be an instance of 'b b0typecode_t'

type bid_t = int

(** value typing *)
type 't b0typecode_t' = 
  [
  | `BTYP_name of bid_t         
  | `BTYP_inst of bid_t * 't list 
  | `BTYP_tuple of 't list         
  | `BTYP_sum of 't list            
  | `BTYP_function of 't * 't
  | `BTYP_pointer  of 't 
  | `BTYP_void                       
  | `BTYP_binding of 't * 't 
  | `BTYP_fix of int      
  | `BTYP_var of int     
  ]

(** meta typing *)
type 't b1typecode_t' =
  [
  | `BTYP_apply of 't * 't 
  | `BTYP_typefun of (int * 't) list * 't * 't
  | `BTYP_type
  | `BTYP_type_tuple of 't list
  ]

(** general typing *)
type 't btypecode_t' =
  [
  | 't b0typecode_t' 
  | 't b1typecode_t'
  ]

type b0typecode_t = 't b0typecode_t' as 't (* THIS IS LINE 532 *)
type btypecode_t = 't btypecode_t' as 't


-------------------
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


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2003-08-12  4:14 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-09  2:03 [Caml-list] version 7 beta typing change? skaller
2003-08-09 12:10 ` Jacques Garrigue
2003-08-09 16:15   ` skaller
2003-08-09 16:33   ` [Caml-list] Tcl/Tk and RH 9 skaller
2003-08-09 16:59     ` Matt Gushee
2003-08-10 15:57       ` Eray Ozkural
2003-08-10 20:18         ` skaller
2003-08-10  1:43     ` [Caml-list] " Jacques Garrigue
2003-08-10  1:53       ` Alexander V. Voinov
2003-08-10 21:26         ` skaller
2003-08-10 23:15           ` Eray Ozkural
2003-08-10 23:24             ` Eray Ozkural
2003-08-11  0:41             ` Matt Gushee
2003-08-11  1:20               ` Eray Ozkural
2003-08-11  2:02                 ` skaller
2003-08-11  8:38                   ` Sven Luther
2003-08-11  9:41                 ` Christoph Bauer
2003-08-10 20:15       ` skaller
2003-08-11  9:17         ` Christoph Bauer
2003-08-12  4:14           ` skaller
2003-08-10 22:11     ` [Caml-list] " Olivier Andrieu
2003-08-10 22:45       ` Matt Gushee
2003-08-10 23:16         ` Eray Ozkural
2003-08-11  1:33         ` skaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).