comp.lang.ada
 help / color / mirror / Atom feed
From: dick@luth.UUCP (Dick O Schefstr|m)
Subject: Re: Definition of Buzzwords: "Object-Oriented"
Date: Mon, 11-Feb-85 04:52:24 EST	[thread overview]
Date: Mon Feb 11 04:52:24 1985
Message-ID: <238@luth.UUCP> (raw)
In-Reply-To: 271@usl.UUCP


  The not too fruitful discussion of whether Ada or Modula-2 is more 
"object-oriented" seems to turn into a discussion of implementation
of "private" or "opaque" types. 

  Maybe typical to Ada, it provides
several ways of doing things: the Modula-2 style of private types
is in Ada achieved by in the private part declaring an "access" type,
allowing us to defer the layout of the structure pointed to until
writing the implementation part. This give us a higher degree of
independency between specification and implementation parts, but it
also means that we cannot give default initializations to private
types and an initialization routine must be explicitly called.
  If you create a lot of temporary used objects of this private type,
using the "pointer style", you might have to start thinking about
reuse of space and garbage collection. To statically allocate objects
has drawbacks, but their space is easily and automatically reclaimed 
when no longer used by the simple procedure call-stack mechanism. 

Dick Schefstrom, 
Computer Science Department
University of Lulea
S-951 87 Lulea
Sweden

      reply	other threads:[~1985-02-11  9:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4288@ucbvax.ARPA>
     [not found] ` <366@cavell.UUCP>
1985-01-25 19:51   ` Definition of Buzzwords: "Object-Oriented" Ian Kaplan
1985-01-31 20:10     ` Robert Stroud
1985-02-04 15:47       ` Ian Kaplan
1985-02-07 18:45         ` Definition of Buzzwords: "Object-Oriented" (really C++) Arnold Robbins
1985-02-05 16:21       ` Definition of Buzzwords: "Object-Oriented" Juha I. Heinanen
1985-02-11  9:52         ` Dick O Schefstr|m [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox