Browse Prior Art Database

How to Use Objects Created in Dynamic Languages in System Object Model

IP.com Disclosure Number: IPCOM000113219D
Original Publication Date: 1994-Jul-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 52K

Publishing Venue

IBM

Related People

Conner, MH: AUTHOR [+4]

Abstract

System Object Model (SOM) provides a language neutral object model to create class libraries. In other words, classes can be written and used in the different language domains. In todays technology, class libraries that are written in C++ can not be used in Smalltalk and vice versa. This problem is solved if both C++ and Smalltalk can support SOM. So, class libraries written in different languages can export their boundaries to SOM and thus make their services available in different language domains. The following describes an algorithm that enables the usage of class libraries written in dynamic languages like Smalltalk and CLOS (Common Lisp System) in SOM.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 61% of the total text.

How to Use Objects Created in Dynamic Languages in System Object Model

      System Object Model (SOM) provides a language neutral object
model to create class libraries.  In other words, classes can be
written and used in the different language domains.  In todays
technology, class libraries that are written in C++ can not be used
in Smalltalk and vice versa.  This problem is solved if both C++ and
Smalltalk can support SOM.  So, class libraries written in different
languages can export their boundaries to SOM and thus make their
services available in different language domains.  The following
describes an algorithm that enables the usage of class libraries
written in dynamic languages like Smalltalk and CLOS (Common Lisp
System) in SOM.

      The classes written in dynamic languages like Smalltalk can be
exported to SOM to enable their usage in different languages.  Once
we export these classes to SOM, we could either use them directly or
subclass them to change their behaviour and then use them.

      The solution described below is implemented for OREXX, Object
Oriented REXX.  Although OREXX is an internal IBM tool, the solutions
that are found are language independent and the same ideas can be
used to integrate SOM with other dynamic languages like Smalltalk and
CLOS.

      Let's say that we have a dynamic language class, named
"Student", that we like to subclass in SOM and name it "Graduate".

The following steps need to be followed:

 Step 1...