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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Warp <warplayer@f...>
Subject: [Caml-list] OO Interface
If I got a parametrized class like :

class p (x:int) (y:int) =
object(self)
    val x = x
    val y = y
    method pos = (x,y)
rnd

How do I write the correct interface for this class ? I can't figure out how
to specify the parameters type.
I don't want to, but perhaps I have to use a Module ?

Thanks

Warp

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr