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] 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) =
    val x = x
    val y = y
    method pos = (x,y)

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 ?



Bug reports:  FAQ:
To unsubscribe, mail  Archives: