caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Peng Zang <peng.zang@gmail.com>
To: caml-list@yquem.inria.fr
Cc: Chris Clearwater <chris@detriment.org>
Subject: Re: [Caml-list] 'open' on objects?
Date: Tue, 2 Sep 2008 16:25:58 -0400	[thread overview]
Message-ID: <200809021626.01879.peng.zang@gmail.com> (raw)
In-Reply-To: <1220382208.7225.16.camel@chris-desktop.lv.cox.net>

-----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-----


      reply	other threads:[~2008-09-02 20:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 19:03 Chris Clearwater
2008-09-02 20:25 ` Peng Zang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200809021626.01879.peng.zang@gmail.com \
    --to=peng.zang@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=chris@detriment.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).