Browse thread
Class runtime representation
[
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: | Dmitry Bely <dmitry.bely@g...> |
| Subject: | Re: [Caml-list] Class runtime representation |
On Dec 7, 2007 5:36 PM, Till Varoquaux <till.varoquaux@gmail.com> wrote: > I would conjecture it needs the full name in case of collision, but > someone better informed than me will probably give you the definite > answer. No, it's detected during compilation: class test = object method argzad = 1 method ctzakz = 2 (* the same hash value *) end ocamlopt -c test.ml File "test.ml", line 2, characters 0-53: Method labels `ctzakz' and `argzad' are incompatible. Change one of them. When you invoke a method the name is not involved (only the label is). - Dmitry Bely