Browse thread
[Caml-list] Allow declaring classes "final" so self type has no type variables?
-
tim@f...
-
james woodyatt
- Alessandro Baretta
-
james woodyatt
[
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: | Alessandro Baretta <alex@b...> |
| Subject: | Re: [Caml-list] Allow declaring classes "final" so self type has no type variables? |
james woodyatt wrote: > On Friday, Sep 6, 2002, at 12:12 US/Pacific, Tim Freeman wrote: > >> >> Any comments on whether this is a good idea? > > > Hide the class with a module signature. Publish only the class type and > one or more functions for constructing objects. I don't think this is what he meant. I think he would like to "finalize" a class for efficiency purposes as opposed to "safety" purposes. He is asking for some compiler magic. Alex ------------------- 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