🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.st80
Article #330

Re: Smalltalk-80 as an Ada software env

#330
From: johnson
Date: Mon, 01 Sep 1986 14:23
18 lines
1531 bytes
It is actually easy to simulate (in Ada) having a subclass redefine a
superclass's method.  Each class is simulated by a separate package
and the package for a subclass contains a procedure for each method
defined in the superclass unless the method was redefined in the
subclass.  Thus, the Ada code contains no trace of the class hierarchy.

The hard part of simulating Smalltalk in Ada is when the class of an
object is not known.  For example, the collection of subviews of a
view contains objects of many classes, each of which can have a
separate definition of "display" (actually, displayView).  Part of
displaying a view is displaying all its subviews.  This problem could
be solved easily if Ada had procedure valued variables, but it is my
understanding that it does not.  Please correct me if I am wrong, I
am not an Ada expert.

Ralph Johnson
johnson@p.cs.uiuc.edu      uiucdcs!johnson
Technical Details
Message-ID: <9000012@uiucdcsp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!princeton!allegra!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsp!johnson
References: <254@linus.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!princeton!allegra!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsp!johnson
From: johnson@uiucdcsp.CS.UIUC.EDU
Newsgroups: net.lang.st80
Subject: Re: Smalltalk-80 as an Ada software env
Message-ID: <9000012@uiucdcsp>
Date: Mon, 1-Sep-86 10:23:00 EDT
Article-I.D.: uiucdcsp.9000012
Posted: Mon Sep  1 10:23:00 1986
Date-Received: Tue, 2-Sep-86 21:23:56 EDT
References: <254@linus.UUCP>
Lines: 18
Nf-ID: #R:linus.UUCP:254:uiucdcsp:9000012:000:898
Nf-From: uiucdcsp.CS.UIUC.EDU!johnson    Sep  1 09:23:00 1986