caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Strange type error
@ 2000-10-23 15:35 Claudio Sacerdoti Coen
  2000-10-24  7:05 ` Judicael Courant
  2000-10-24  7:35 ` Jacques Garrigue
  0 siblings, 2 replies; 4+ messages in thread
From: Claudio Sacerdoti Coen @ 2000-10-23 15:35 UTC (permalink / raw)
  To: caml-list

 Hello,

 let a.mli be

  type 'a section_path = { x : int; }
  and mind_section_path = [ `MIND] section_path
  type const_section_path = [ `CONST] section_path

 and b.mli be

 type 'a section_path = { x : int; }
 type mind_section_path = [ `MIND] section_path
 type const_section_path = [ `CONST] section_path

 b.mli is compiled without problems, but for a.mli I get

 File "prova.mli", line 3, characters 26-35:
 This type [ `CONST] should be an instance of type [ `MIND]

 that seems nonsense to me. Someone could explain the error?

 						Thanks,
						C.S.C.

-- 
----------------------------------------------------------------
Real name: Claudio Sacerdoti Coen
Graduate Computer Science Student at University of Bologna
Now at INRIA (Rocquencourt)
E-mail: sacerdot@cs.unibo.it
        Claudio.Sacerdoti_Coen@inria.fr
http://caristudenti.cs.unibo.it/~sacerdot
----------------------------------------------------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: Strange type error
@ 2000-10-24 16:47 Brent Fulgham
  0 siblings, 0 replies; 4+ messages in thread
From: Brent Fulgham @ 2000-10-24 16:47 UTC (permalink / raw)
  To: caml-list

> I had a similar problem some time ago. This strange behavior of O'Caml
> 3.00 was corrected in the CVS version:
> 
> ------------------------------------------------------
>         Objective Caml version 3.00
> 
> # type 'a section_path = { x : int; }
>     and mind_section_path = [ `MIND] section_path
>     ;;
> type [ `MIND] section_path = { x : int; }  constraint [ `MIND] = [
> `MIND]
> type mind_section_path = [ `MIND] section_path
> # 
> ------------------------------------------------------
>         Objective Caml version 3.00+8 (2000-06-30)
> 
> # type 'a section_path = { x : int; }
>     and mind_section_path = [ `MIND] section_path
>     ;;
>     type 'a section_path = { x : int; } 
> type mind_section_path = [ `MIND] section_path
> # 
> ------------------------------------------------------
> 

With this fix, and the ICFP-discovered bug fix, does anyone
think it's time to create a 3.01 tarball/binary distribution
as a "stable" release?

Thanks,

-Brent 



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

end of thread, other threads:[~2000-10-25 18:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-23 15:35 Strange type error Claudio Sacerdoti Coen
2000-10-24  7:05 ` Judicael Courant
2000-10-24  7:35 ` Jacques Garrigue
2000-10-24 16:47 Brent Fulgham

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