eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'InlineObject':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: InlineObject


Inheritance:

   Object
   |
   +--InlineObject
      |
      +--InlineObject::InlineObjectPrototype

Package:
stx:libbasic
Category:
Kernel-Classes
Version:
rev: 1.7 date: 2018/05/09 17:38:23
user: cg
file: InlineObject.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


WARNING: InlineObjects are an experimental feature.

InlineObjects are written as literals of the form:

#{
    fieldName1: value1.
    fieldName2: value2.
    ...
    fieldNameN: valueN.
}

For example:

#{
    firstName: 'Peter'.
    lastName: 'Miller'.
    age: 25.
}

#{
    date:  Date today.
    time:  Time now.
}

All inlineObjects will be instances of an anonymous subclass of me,
and provide getter protocol for their fields (e.g. firstName, lastName and age in the above example.
InlineObjects are immutable (no setters).


Class protocol:

prototype access
o  prototype


Instance protocol:

printing & storing
o  storeOn: aStream


Private classes:

    InlineObjectPrototype


ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sun, 23 Sep 2018 10:13:18 GMT