Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #27013

Re: Inheritance

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups comp.lang.forth
Subject Re: Inheritance
Date 2013-11-27 23:07 +0100
Organization 1&1 Internet AG
Message-ID <l75qfd$g1n$1@online.de> (permalink)
References <52933ba3$0$294$14726298@news.sunsite.dk> <96ednQd94ZBxXQ7PnZ2dnUVZ_h-dnZ2d@supernews.com> <529473e2$0$292$14726298@news.sunsite.dk> <l733q4$in6$1@online.de> <52951cdb$0$304$14726298@news.sunsite.dk>

Show all headers | View raw


Doug Hoffman wrote:

> On 11/26/13 4:28 PM, Bernd Paysan wrote:
> Sorry if I wasn't clear.  In FMS one can do it either way:
> 
> 1) Declare the embedded object class.  The class can never change.
> 2) Store the embedded object in a container instance variable.  The
> object (and class) can change a million+ times during program execution.
> 
> No limitations.

Great.

>> I've both in BerndOOF, embedded-objects that
>> can have only one class, and embedded-by-pointer objects that have the
>> identical syntax for use, but can have different classes.
> 
> You and I are providing the same functionality.

Then it's fine.  I just so far didn't find a good use for embedded objects 
that have a fixed, unchangeable class.  The unchangeable types usually are 
pretty primitive types like integers, floats, or strings, and as such don't 
need OOP.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Inheritance Doug Hoffman <glidedog@gmail.com> - 2013-11-25 06:59 -0500
  Re: Inheritance Bernd Paysan <bernd.paysan@gmx.de> - 2013-11-25 20:01 +0100
    Re: Inheritance Doug Hoffman <glidedog@gmail.com> - 2013-11-26 05:11 -0500
      Re: Inheritance Bernd Paysan <bernd.paysan@gmx.de> - 2013-11-26 22:09 +0100
    Re: Inheritance the_gavino_himself <visphatesjava@gmail.com> - 2013-11-27 15:25 -0800
      Re: Inheritance Bernd Paysan <bernd.paysan@gmx.de> - 2013-11-28 01:39 +0100
        Re: Inheritance Mark Wills <markrobertwills@yahoo.co.uk> - 2013-11-28 01:53 -0800
  Re: Inheritance Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-11-25 15:28 -0600
    Re: Inheritance Doug Hoffman <glidedog@gmail.com> - 2013-11-26 05:11 -0500
      Re: Inheritance Bernd Paysan <bernd.paysan@gmx.de> - 2013-11-26 22:28 +0100
        Re: Inheritance Doug Hoffman <glidedog@gmail.com> - 2013-11-26 17:12 -0500
          Re: Inheritance Bernd Paysan <bernd.paysan@gmx.de> - 2013-11-27 23:07 +0100
      Re: Inheritance Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-11-26 17:11 -0600
        Re: Inheritance Doug Hoffman <glidedog@gmail.com> - 2013-11-27 06:25 -0500
          Re: Inheritance Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-11-27 11:58 -0600

csiph-web