Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Yelling
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Neel Krishnaswami <neelk@a...>
Subject: Re: [Caml-list] Yelling

Anton Moscal writes:
>
> This isn't true: you can abbrevaite the later declaration as:
>    module type BAR = (* This is a subtype of FOO *)
>      sig
>        include FOO
>        val v' : t
>      end
> 
> AFAIK this is not documented and relatively new feature, but its
> works.

I just tried this out, and it's really cool!

Are there any plans to document this feature and make it permanent?
If so, I might try functorizing Haskell's Edison data structure
libraries (the endless copying of interfaces was the reason I gave up
the last time I tried this).

-- 
Neel Krishnaswami
neelk@alum.mit.edu

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