[
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: | Peng Zang <peng.zang@g...> |
| Subject: | Re: [Caml-list] 'open' on objects? |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 02 September 2008 03:03:28 pm Chris Clearwater wrote: > Is it possible to create an object by extending another object? > > I'd like to do something like this: > > ... > object > open (an_object:class_type) > ... > end > ... The short answer is I think you can only extend classes (through inheritance). I don't think you can extend an object (eg. add methods to an object). Peng -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFIvaFZfIRcEFL/JewRAvcSAKDOTE2+niYho6tTHbhI4h7h3L5K0wCfdXti LM7dnZLJTrGnCcQoh5M6tCU= =KBtf -----END PGP SIGNATURE-----