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] Alternate constructors for a class
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-09-02 (15:12)
From: Michal Moskal <malekith@p...>
Subject: Re: [Caml-list] Alternate constructors for a class
On Tue, Sep 02, 2003 at 02:45:37PM +0100, Richard Jones wrote:
> Is there an easy way to provide two different constructors for a
> class?

Export function for constructing objects of this class. You can also
only export class type, not the class itself, to allow object
construction only through this function. Of course there can be any
number of this kind of constructor-functions.

: Michal Moskal :: : GCS {C,UL}++++$ a? !tv
: When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}>+++ h

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: