Browse thread
[Caml-list] Narrowing class's public interface
[
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: | skaller <skaller@u...> |
| Subject: | Re: [Caml-list] Narrowing class's public interface |
On Wed, 2004-10-13 at 16:39, John Prevost wrote:
> On 13 Oct 2004 12:27:07 +1000, skaller <skaller@users.sourceforge.net> wrote:
> {...}
> > Hence OO is useless as a general paradigm. {...}
> Er. You're overstating the case here.
I said OO is useless as general paradigm,
I meant that and I don't think it is overstated.
I also said objects have a limited use, where
you don't need covariant methods.
In such cases, you get dynamic (late) binding
which is indeed very useful.
--->
class type supercow = object
inherit cow
method fly : unit -> unit
end
<----
... runs out to buy steel umbrella ...
--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net
-------------------
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