From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=AWL,UPPERCASE_25_50 autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id EB52DBBAF for ; Tue, 2 Sep 2008 22:26:05 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiIBAJA9vUjRVYTzlGdsb2JhbACSET4BAQEBCQUIBw8FRJoShwwBAoMl X-IronPort-AV: E=Sophos;i="4.32,319,1217800800"; d="scan'208";a="28739462" Received: from an-out-0708.google.com ([209.85.132.243]) by mail4-smtp-sop.national.inria.fr with ESMTP; 02 Sep 2008 22:26:05 +0200 Received: by an-out-0708.google.com with SMTP id b2so366202ana.102 for ; Tue, 02 Sep 2008 13:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:cc:references:in-reply-to:content-type :content-transfer-encoding:content-disposition:message-id; bh=tmYz5UN2sRaxOz9K4YT8KrDYmm5Up0Btk9puoJwqK90=; b=EoK2c7AwnA45Sbi/aHnVTMgx8SmNAg5O31vlFnYaM/R4ma3af+u/OEB18PexIfhNYo mRqvpQoID6u/xNTP4rMWmVlE6zXo+azSRZrunJpQn0hgfRjAsqFzwG5CK92e//8Mi2ZG VvFTXLBmdCXp6Q0uYbqBTUBeZEbvSGVuIBaEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to :content-type:content-transfer-encoding:content-disposition :message-id; b=hQWbDGcSgLTU4uh+Utr9LY83cfO49FKkYYhPZ3Ozeae0LhlOd0b9fD11fycOMV2SFn pUFWp7k2Vr/DE29AlkLlb7hBFDIn7PGjh6WCkXXVU2iNb0WsgA7YCA2U/Upz+jmrf29T xJrd5ajFua7sVjuenoanzbJY8I3hZOpbD3Po0= Received: by 10.100.109.13 with SMTP id h13mr7974234anc.158.1220387164013; Tue, 02 Sep 2008 13:26:04 -0700 (PDT) Received: from lawn-143-215-204-204.lawn.gatech.edu ( [143.215.204.204]) by mx.google.com with ESMTPS id c13sm14844826anc.32.2008.09.02.13.26.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Sep 2008 13:26:03 -0700 (PDT) From: Peng Zang Reply-To: peng.zang@gmail.com To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] 'open' on objects? Date: Tue, 2 Sep 2008 16:25:58 -0400 User-Agent: KMail/1.9.7 Cc: Chris Clearwater References: <1220382208.7225.16.camel@chris-desktop.lv.cox.net> In-Reply-To: <1220382208.7225.16.camel@chris-desktop.lv.cox.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809021626.01879.peng.zang@gmail.com> X-Spam: no; 0.00; hash:01 peng:98 peng:98 clearwater:98 wrote:01 caml-list:01 short:01 objects:02 'open':03 inheritance:03 gnu:03 message-----:05 pgp:05 pgp:05 i'd:06 -----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-----