Browse thread
[Caml-list] Alternate constructors for a class
-
Richard Jones
- Michal Moskal
- Gerd Stolpmann
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv
: When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}>+++ h
-------------------
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