Structure.st
author Claus Gittinger <cg@exept.de>
Wed, 07 Apr 2010 16:53:33 +0200
changeset 2341 d05835f10cb8
parent 2215 8ae61b93c7eb
child 2351 4371af1faf81
permissions -rw-r--r--
better check for behavior compatibility
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
283
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     1
"
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     2
 COPYRIGHT (c) 1996 by Claus Gittinger
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     3
              All Rights Reserved
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     4
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     5
 This software is furnished under a license and may be used
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     6
 only in accordance with the terms of that license and with the
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     8
 be provided or otherwise made available to, or used by, any
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
     9
 other person.  No title to or ownership of the software is
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    10
 hereby transferred.
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    11
"
1129
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
    12
"{ Package: 'stx:libcomp' }"
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
    13
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
Object subclass:#Structure
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    15
        instanceVariableNames:'superclass flags methodDictionary lookupFunction instSize i1 i2 i3 i4 i5 i6 i7
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    16
                i8 i9 i10 i11 i12 i13 i14 i15 i16 i17 i18 i19 i20 i21 i22 i23 i24
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    17
                i25 i26 i27 i28 i29 i30 i31 i32 i33 i34 i35 i36 i37 i38 i39 i40
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    18
                i41 i42 i43 i44 i45 i46 i47 i48 i49 i50'
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    19
        classVariableNames:'OneInstance DummyClass ReadAccessMethods WriteAccessMethods
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    20
                OtherMethods OtherSelectors'
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    21
        poolDictionaries:''
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    22
        category:'Programming-Support'
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    25
!Structure class methodsFor:'documentation'!
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
283
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    27
copyright
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    28
"
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    29
 COPYRIGHT (c) 1996 by Claus Gittinger
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    30
              All Rights Reserved
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    31
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    32
 This software is furnished under a license and may be used
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    33
 only in accordance with the terms of that license and with the
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    35
 be provided or otherwise made available to, or used by, any
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    36
 other person.  No title to or ownership of the software is
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    37
 hereby transferred.
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    38
"
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    39
!
3fdbe3ef9a1d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 282
diff changeset
    40
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
documentation
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    43
    This is an experimental class, stressing the metaObject capabilities.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    45
    Structures are objects which are class-less,
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    46
    only holding some values, and provide a protocol to access
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    47
    those fields. In addition, they support the array-protocol,
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    48
    so they can be used as backward compatible replacements in
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
    places where arrays were returned.
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    50
    (However, we recommend using private classes, since they are easier
1037
6c3b1d28ae03 comment
Claus Gittinger <cg@exept.de>
parents: 953
diff changeset
    51
     to understand and maintain).
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    52
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    53
    For example, some structure object can be create with:
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    54
        ^ Structure with:#foo->'someFooValue' with:#bar->'someBarValue'
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    and access these values either as:
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    57
        retVal at:1     -> returns the foo instvar value
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    58
        retVal at:2     -> returns the bar instvar value
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    or (much more convenient and readable) as:
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    60
        retVal foo
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    61
        retVal bar
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    63
    Implementation note:
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    64
        this is a very tricky (but fully legal) implementation,
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    65
        creating an object which is its own class.
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    66
        Therefore, no additional overhead by extra (class) objects is involved.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    67
        These are very lightweight objects.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    68
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    69
        Another prove that smalltalk is a powerful & flexible programming language.
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    70
        However, some smalltalk systems crash if your try this ;-)
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
    72
    CAVEAT:
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    73
        tricky implementation - not the full object protocol is supported;
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
    74
        a maximum of 50 instance variables is allowed.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
    75
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    76
    [WARNING:]
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    77
        this is an experimental goody - for our amusement and not meant
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    78
        to be used in real applications.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    79
        It may be removed without notice and/or no longer maintained in the furure.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
    80
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    [author:]
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    82
        Claus Gittinger
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
    [see also:]
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
    85
        Array
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    86
        Behavior
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
examples
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
"
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    92
  access is possibly by name:
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    93
                                                                [exBegin]
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    94
    Transcript showCR:
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    95
        (Structure with:#foo->'foo value') foo
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    96
                                                                [exEnd]
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    98
  AND also by index (for backward compatibility):
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
    99
                                                                [exBegin]
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   100
    Transcript showCR:
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   101
        ((Structure with:#foo->'foo value') at:1)
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   102
                                                                [exEnd]
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   104
  it can be inspected:
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   105
                                                                [exBegin]
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   106
    (Structure with:#foo->'foo value') inspect
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   107
                                                                [exEnd]
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   109
  and presents its contents nicely:
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   110
                                                                [exBegin]
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   111
    (Structure with:#foo->'foo value' with:#bar->'bar value') inspect
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   112
                                                                [exEnd]
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   113
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   114
                                                                [exBegin]
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
    (Structure with:#foo->'hello' with:#bar->true with:#baz->'world') inspect
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   116
                                                                [exEnd]
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
! !
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   121
!Structure class methodsFor:'initialization'!
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
initialize
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    OneInstance isNil ifTrue:[
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   125
        "/ check if the first few instvars correspond to Behavior's definition:
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   126
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   127
        (Behavior instSize + 1) == (self instanceVariableNames indexOf:#i1) ifFalse:[
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   128
            self halt:'you must change the definition of this class (instvars before i1 must match behavior''s)'.
1424
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
   129
        ].
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
   130
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
        OneInstance := self basicNew.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
        DummyClass := Behavior shallowCopy.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
        DummyClass flags:(Behavior flagBehavior bitOr:Behavior flagPointers).
953
e863f0860a7e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 945
diff changeset
   135
        DummyClass setName:#DummyClass.
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   136
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   137
        ReadAccessMethods := (1 to:50)
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   138
                                collect:[:i | |m|
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   139
                                            m := self compiledMethodAt:('i', i printString) asSymbol.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   140
                                            (m notNil and:[m isLazyMethod]) ifTrue:[m makeRealMethod].
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   141
                                            m
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   142
                                ].
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   143
        WriteAccessMethods := (1 to:50)
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   144
                                collect:[:i | |m|
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   145
                                            m := self compiledMethodAt:('i', i printString , ':') asSymbol.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   146
                                            (m notNil and:[m isLazyMethod]) ifTrue:[m makeRealMethod].
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   147
                                            m
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   148
                                ].
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   149
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   150
        OtherMethods := OrderedCollection new.
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   151
        OtherMethods
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   152
            add:(self compiledMethodAt:#doesNotUnderstand:);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   153
            add:(Object compiledMethodAt:#class);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   154
            add:(Object compiledMethodAt:#identityHash);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   155
            add:(Object compiledMethodAt:#at:);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   156
            add:(Object compiledMethodAt:#at:put:);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   157
            add:(Object compiledMethodAt:#basicAt:);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   158
            add:(Object compiledMethodAt:#basicAt:put:);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   159
            add:(Object compiledMethodAt:#printString);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   160
            add:(Object compiledMethodAt:#printOn:);
2186
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
   161
            add:(Object compiledMethodAt:#basicPrintOn:);
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   162
            add:(Object compiledMethodAt:#addDependent:);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   163
            add:(Object compiledMethodAt:#removeDependent:);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   164
            add:(Object compiledMethodAt:#dependents);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   165
            add:(Object compiledMethodAt:#dependents:);
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   166
            add:(Object compiledMethodAt:#perform:);
2186
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
   167
            add:(Object compiledMethodAt:#perform:with:);
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
   168
            add:(Object compiledMethodAt:#isBoolean).
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   169
        OtherMethods := OtherMethods asArray.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   170
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   171
        OtherSelectors := #(#doesNotUnderstand:
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   172
                            #class #identityHash
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   173
                            #at: #at:put: #basicAt: #basicAt:put:
2186
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
   174
                            #printString #printOn: #basicPrintOn:
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   175
                            #addDependent: #removeDependent: #dependents #dependents:
2186
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
   176
                            #perform: #perform:with:
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
   177
                            #isBoolean).
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
    "
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   181
     OneInstance := nil.
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   182
     self initialize.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   185
    "Modified: 21.9.1996 / 16:01:48 / cg"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
! !
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   188
!Structure class methodsFor:'instance creation'!
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
newWith:names
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
    "return a new structure containing fields as passed in the names collection.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
     The argument must be a sequenceable collection of symbols.
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   193
     The new structures values are all initialized to nil."
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
     ^ self newWith:names values:nil
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
     Structure newWith:#(foo bar)
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
    "Created: 13.5.1996 / 20:03:42 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
newWith:names values:values
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
    "return a new structure containing fields as passed in the names collection.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
     The argument must be a sequenceable collection of symbols.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
     The new structures values are set to corresponding values from the second argument, values."
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
1424
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
   209
    |arr sels mthds nInsts behviorsInstSize|
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   210
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   211
    nInsts := names size.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
    sels := names collect:[:nm | nm asSymbol].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
    sels := sels , (names collect:[:nm | (nm , ':') asSymbol]).
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   215
    sels := sels , OtherSelectors.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   217
    mthds := ReadAccessMethods copyTo:nInsts.
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   218
    mthds := mthds , (WriteAccessMethods copyTo:nInsts).
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   219
    mthds := mthds , OtherMethods.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   221
    "/ create a prototype object as an array ...
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   222
    "/ the object will be its own class, and have the indexable flag bit set;
1424
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
   223
    "/ therefore, the first behviorsInstSize instVars must correspond to Behavior instvars,
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   224
    "/ the remaining ones will be the indexed instvars.
1424
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
   225
    behviorsInstSize := Behavior instSize.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
1424
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
   227
    arr := Array new:(behviorsInstSize + nInsts).
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
    arr at:1 put:nil.                                                   "/ superclass
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
    arr at:2 put:(Behavior flagBehavior bitOr:Behavior flagPointers).   "/ flags
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   230
    arr at:3 put:(MethodDictionary withKeys:sels andValues:mthds).      "/ selectors & methods
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   231
    arr at:4 put:behviorsInstSize.                                      "/ instSize
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   232
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   233
    "/ now, the big trick ...
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
    arr changeClassTo:DummyClass.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
    arr changeClassTo:arr.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
    values notNil ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
        values keysAndValuesDo:[:i :val |
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
            arr at:i put:val
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
        ]
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   244
    ^ arr.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
     Structure newWith:#(foo bar) values:#('foo' 'bar')
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
    "Created: 13.5.1996 / 20:03:42 / cg"
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   251
    "Modified: 3.7.1996 / 10:24:43 / cg"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
with:assoc
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
    "return a new structure with a single field, named to the assocs key,
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
     and initialized with assocs value."
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
     ^ self newWith:(Array with:assoc key) values:(Array with:assoc value)
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
     Structure with:#foo->'foo'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   262
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
with:assoc1 with:assoc2
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
    "return a new structure with two fields, named as defined by the arguments'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
     keys, and and initialized with the assocs' values."
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   269
     ^ self newWith:(Array with:assoc1 key with:assoc2 key)
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   270
             values:(Array with:assoc1 value with:assoc2 value)
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
     Structure with:#foo->'foo' with:#bar->'bar'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
with:assoc1 with:assoc2 with:assoc3
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
    "return a new structure with three fields, named as defined by the arguments'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
     keys, and and initialized with the assocs' values."
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   281
     ^ self newWith:(Array with:assoc1 key with:assoc2 key with:assoc3 key)
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   282
             values:(Array with:assoc1 value with:assoc2 value with:assoc3 value)
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
     Structure with:#foo->'foo' with:#bar->'bar' with:#baz->'baz'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
with:assoc1 with:assoc2 with:assoc3 with:assoc4
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
    "return a new structure with four fields, named as defined by the arguments'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
     keys, and and initialized with the assocs' values."
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   293
     ^ self newWith:(Array with:assoc1 key with:assoc2 key
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   294
                           with:assoc3 key with:assoc4 key)
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   295
             values:(Array with:assoc1 value with:assoc2 value
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   296
                           with:assoc3 value with:assoc4 value)
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
     Structure with:#foo->'foo' with:#bar->'bar' with:#baz->'baz' with:#hello->'hello'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
with:assoc1 with:assoc2 with:assoc3 with:assoc4 with:assoc5
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
    "return a new structure with five fields, named as defined by the arguments'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
     keys, and and initialized with the assocs' values."
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   307
     ^ self newWith:(Array with:assoc1 key with:assoc2 key
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   308
                           with:assoc3 key with:assoc4 key
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   309
                           with:assoc5 key)
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   310
             values:(Array with:assoc1 value with:assoc2 value
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   311
                           with:assoc3 value with:assoc4 value
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
                           with:assoc5 value)
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
    "
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
     Structure with:#foo->'foo' with:#bar->'bar' with:#baz->'baz' with:#hello->'hello' with:#world->'world'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
    "
1131
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   317
!
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   318
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   319
with:assoc1 with:assoc2 with:assoc3 with:assoc4 with:assoc5 with:assoc6
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   320
    "return a new structure with five fields, named as defined by the arguments'
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   321
     keys, and and initialized with the assocs' values."
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   322
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   323
     ^ self newWith:(Array with:assoc1 key with:assoc2 key
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   324
                           with:assoc3 key with:assoc4 key
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   325
                           with:assoc5 key with:assoc6 key)
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   326
             values:(Array with:assoc1 value with:assoc2 value
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   327
                           with:assoc3 value with:assoc4 value
1131
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   328
                           with:assoc5 value with:assoc6 value)
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   329
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   330
    "
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   331
     Structure with:#foo->'foo' with:#bar->'bar' with:#baz->'baz' with:#hello->'hello' with:#world->'world'
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   332
    "
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   333
!
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   334
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   335
with:assoc1 with:assoc2 with:assoc3 with:assoc4 with:assoc5 with:assoc6 with:assoc7
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   336
    "return a new structure with five fields, named as defined by the arguments'
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   337
     keys, and and initialized with the assocs' values."
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   338
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   339
     ^ self newWith:(Array with:assoc1 key with:assoc2 key
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   340
                           with:assoc3 key with:assoc4 key
1131
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   341
                           with:assoc5 key with:assoc6 key
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   342
                           with:assoc7 key)
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   343
             values:(Array with:assoc1 value with:assoc2 value
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
   344
                           with:assoc3 value with:assoc4 value
1131
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   345
                           with:assoc5 value with:assoc6 value
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   346
                           with:assoc7 value)
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   347
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   348
    "
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   349
     Structure with:#foo->'foo' with:#bar->'bar' with:#baz->'baz' with:#hello->'hello' with:#world->'world'
82b645876f08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1130
diff changeset
   350
    "
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
! !
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   353
!Structure class methodsFor:'special'!
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   354
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   355
primAddSelector:newSelector withMethod:newMethod
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   356
    "must reinit myself when methods are accepted."
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   357
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   358
    |val|
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   359
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   360
    val := super primAddSelector:newSelector withMethod:newMethod.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   361
    OneInstance := nil.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   362
    self initialize.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   363
    ^ val
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   364
! !
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   365
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
!Structure methodsFor:'accessing'!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
flags
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
    "return the flags - required class protocol"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
    ^ flags
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
    "Created: 13.5.1996 / 21:19:23 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
flags:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
    "set the flags - required class protocol"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
    flags := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
    "Created: 13.5.1996 / 21:19:23 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   383
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
i1
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   385
    "prototype method to return the first instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   386
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   387
    ^ i1
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   390
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   391
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   392
i10
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   393
    "prototype method to return the 10th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
    ^ i10
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   396
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   397
    "Created: 13.5.1996 / 21:19:27 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
i10:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   401
    "prototype method to set the 10th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
    i10 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   404
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
    "Created: 13.5.1996 / 21:19:27 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   408
i11
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   409
    "return i11"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   410
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   411
    ^ i11
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   412
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
    "Created: 13.5.1996 / 21:19:27 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
i11:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   417
    "prototype method to set the 11th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   418
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
    i11 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   420
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   421
    "Created: 13.5.1996 / 21:19:27 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   422
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   423
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   424
i12
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   425
    "return i12"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   426
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   427
    ^ i12
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   428
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   429
    "Created: 13.5.1996 / 21:19:27 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   430
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   431
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   432
i12:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
    "set i12"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
    i12 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
    "Created: 13.5.1996 / 21:19:27 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
i13
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
    "return i13"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
    ^ i13
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
i13:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
    "set i13"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
    i13 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
i14
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
    "return i14"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
    ^ i14
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   461
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
i14:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
    "set i14"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
    i14 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
i15
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
    "return i15"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
    ^ i15
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
i15:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
    "set i15"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
    i15 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
i16
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
    "return i16"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
    ^ i16
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
i16:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
    "set i16"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
    i16 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
i17
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
    "return i17"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
    ^ i17
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
    "Created: 13.5.1996 / 21:19:28 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
i17:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
    "set i17"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
    i17 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
    "Created: 13.5.1996 / 21:19:29 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
i18
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
    "return i18"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
    ^ i18
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
    "Created: 13.5.1996 / 21:19:29 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
i18:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
    "set i18"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
    i18 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
    "Created: 13.5.1996 / 21:19:29 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
i19
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
    "return i19"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
    ^ i19
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
    "Created: 13.5.1996 / 21:19:29 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
i19:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
    "set i19"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
    i19 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
    "Created: 13.5.1996 / 21:19:29 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
i1:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   553
    "prototype method to set the 1st instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
    i1 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
i2
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   561
    "prototype method to return the 2nd instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
    ^ i2
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
i20
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
    "return i20"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   571
    ^ i20
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
    "Created: 13.5.1996 / 21:19:29 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
i20:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
    "set i20"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
    i20 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   580
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
    "Created: 13.5.1996 / 21:19:29 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   584
i21
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   585
    "return i21"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   586
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   587
    ^ i21
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   588
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   589
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   590
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   591
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   592
i21:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   593
    "set i21"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   594
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   595
    i21 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   596
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   597
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   598
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   599
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   600
i22
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   601
    "return i22"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   602
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   603
    ^ i22
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   604
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   605
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   606
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   607
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   608
i22:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   609
    "set i22"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   610
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   611
    i22 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   612
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   613
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   614
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   615
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   616
i23
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   617
    "return i23"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   618
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   619
    ^ i23
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   620
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   621
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   622
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   623
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   624
i23:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   625
    "set i23"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   626
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   627
    i23 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   628
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   629
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   630
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   631
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   632
i24
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   633
    "return i24"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   634
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   635
    ^ i24
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   636
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   637
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   638
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   639
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   640
i24:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   641
    "set i24"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   642
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   643
    i24 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   644
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   645
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   646
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   647
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   648
i25
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   649
    "return i25"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   650
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   651
    ^ i25
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   652
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   653
    "Created: 21.9.1996 / 16:06:21 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   654
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   655
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   656
i25:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   657
    "set i25"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   658
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   659
    i25 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   660
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   661
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   662
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   663
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   664
i26
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   665
    "return i26"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   666
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   667
    ^ i26
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   668
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   669
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   670
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   671
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   672
i26:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   673
    "set i26"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   674
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   675
    i26 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   676
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   677
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   678
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   679
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   680
i27
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   681
    "return i27"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   682
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   683
    ^ i27
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   684
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   685
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   686
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   687
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   688
i27:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   689
    "set i27"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   690
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   691
    i27 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   692
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   693
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   694
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   695
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   696
i28
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   697
    "return i28"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   698
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   699
    ^ i28
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   700
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   701
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   702
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   703
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   704
i28:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   705
    "set i28"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   706
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   707
    i28 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   708
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   709
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   710
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   711
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   712
i29
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   713
    "return i29"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   714
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   715
    ^ i29
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   716
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   717
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   718
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   719
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   720
i29:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   721
    "set i29"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   722
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   723
    i29 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   724
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   725
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   726
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   727
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
i2:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   729
    "prototype method to set the 2nd instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
    i2 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   736
i3
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   737
    "prototype method to return the 3rd instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   738
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
    ^ i3
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   744
i30:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   745
    "set i30"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   746
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   747
    i30 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   748
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   749
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   750
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   751
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   752
i31
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   753
    "return i31"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   754
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   755
    ^ i31
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   756
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   757
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   758
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   759
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   760
i31:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   761
    "set i31"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   762
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   763
    i31 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   764
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   765
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   766
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   767
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   768
i32
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   769
    "return i32"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   770
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   771
    ^ i32
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   772
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   773
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   774
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   775
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   776
i32:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   777
    "set i32"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   778
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   779
    i32 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   780
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   781
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   782
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   783
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   784
i33
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   785
    "return i33"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   786
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   787
    ^ i33
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   788
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   789
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   790
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   791
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   792
i33:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   793
    "set i33"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   794
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   795
    i33 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   796
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   797
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   798
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   799
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   800
i34
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   801
    "return i34"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   802
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   803
    ^ i34
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   804
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   805
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   806
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   807
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   808
i34:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   809
    "set i34"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   810
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   811
    i34 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   812
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   813
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   814
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   815
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   816
i35
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   817
    "return i35"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   818
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   819
    ^ i35
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   820
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   821
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   822
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   823
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   824
i35:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   825
    "set i35"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   826
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   827
    i35 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   828
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   829
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   830
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   831
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   832
i36
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   833
    "return i36"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   834
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   835
    ^ i36
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   836
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   837
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   838
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   839
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   840
i36:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   841
    "set i36"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   842
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   843
    i36 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   844
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   845
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   846
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   847
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   848
i37
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   849
    "return i37"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   850
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   851
    ^ i37
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   852
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   853
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   854
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   855
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   856
i37:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   857
    "set i37"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   858
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   859
    i37 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   860
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   861
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   862
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   863
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   864
i38
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   865
    "return i38"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   866
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   867
    ^ i38
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   868
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   869
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   870
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   871
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   872
i38:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   873
    "set i38"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   874
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   875
    i38 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   876
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   877
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   878
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   879
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   880
i39
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   881
    "return i39"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   882
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   883
    ^ i39
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   884
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   885
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   886
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   887
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   888
i39:something
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   889
    "set i39"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   890
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   891
    i39 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   892
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   893
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   894
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   895
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   896
i3:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   897
    "prototype method to set the 3rd instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   898
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   899
    i3 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   903
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   904
i4
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   905
    "prototype method to return the 4th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   906
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   907
    ^ i4
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   912
i40
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   913
    "return the value of the instance variable 'i40' (automatically generated)"
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   914
1129
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
   915
    ^ i40
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
   916
!
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   917
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   918
i40:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   919
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   920
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   921
    i40 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   922
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   923
    "Created: 21.9.1996 / 16:06:22 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   924
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   925
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   926
i41
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   927
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   928
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   929
    ^ i41
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   930
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   931
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   932
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   933
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   934
i41:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   935
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   936
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   937
    i41 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   938
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   939
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   940
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   941
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   942
i42
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   943
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   944
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   945
    ^ i42
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   946
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   947
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   948
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   949
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   950
i42:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   951
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   952
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   953
    i42 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   954
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   955
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   956
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   957
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   958
i43
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   959
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   960
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   961
    ^ i43
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   962
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   963
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   964
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   965
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   966
i43:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   967
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   968
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   969
    i43 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   970
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   971
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   972
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   973
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   974
i44
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   975
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   976
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   977
    ^ i44
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   978
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   979
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   980
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   981
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   982
i44:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   983
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   984
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   985
    i44 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   986
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   987
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   988
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   989
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   990
i45
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   991
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   992
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   993
    ^ i45
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   994
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   995
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   996
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   997
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
   998
i45:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
   999
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1000
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1001
    i45 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1002
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1003
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1004
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1005
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1006
i46
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1007
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1008
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1009
    ^ i46
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1010
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1011
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1012
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1013
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1014
i46:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1015
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1016
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1017
    i46 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1018
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1019
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1020
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1021
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1022
i47
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1023
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1024
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1025
    ^ i47
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1026
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1027
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1028
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1029
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1030
i47:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1031
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1032
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1033
    i47 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1034
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1035
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1036
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1037
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1038
i48
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1039
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1040
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1041
    ^ i48
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1042
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1043
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1044
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1045
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1046
i48:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1047
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1048
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1049
    i48 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1050
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1051
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1052
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1053
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1054
i49
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1055
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1056
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1057
    ^ i49
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1058
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1059
    "Created: 21.9.1996 / 16:06:23 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1060
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1061
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1062
i49:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1063
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1064
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1065
    i49 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1066
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1067
    "Created: 21.9.1996 / 16:06:24 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1068
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1069
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
i4:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1071
    "prototype method to set the 4th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1073
    i4 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1074
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1075
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1076
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1077
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1078
i5
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1079
    "prototype method to return the 5th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1080
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1081
    ^ i5
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1082
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1085
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1086
i50
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1087
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1088
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1089
    ^ i50
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1090
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1091
    "Created: 21.9.1996 / 16:06:24 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1092
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1093
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1094
i50:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1095
    "prototype method"
343
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1096
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1097
    i50 := something.
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1098
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1099
    "Created: 21.9.1996 / 16:06:24 / cg"
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1100
!
3232712d4a28 allow up to 50 slots
Claus Gittinger <cg@exept.de>
parents: 294
diff changeset
  1101
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1102
i5:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1103
    "prototype method to set the 5th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1104
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1105
    i5 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1106
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1107
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1108
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1109
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1110
i6
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1111
    "prototype method to return the 6th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1112
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1113
    ^ i6
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1114
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1116
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
i6:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1119
    "prototype method to set the 6th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1120
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1121
    i6 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1122
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1123
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1124
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1125
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
i7
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1127
    "prototype method to return the 7th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1128
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1129
    ^ i7
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1130
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1131
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1132
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1133
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1134
i7:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1135
    "prototype method to set the 7th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1136
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1137
    i7 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1138
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1139
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1142
i8
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1143
    "prototype method to return the 8th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1144
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1145
    ^ i8
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1146
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1147
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1148
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1149
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1150
i8:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1151
    "prototype method to set the 8th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1152
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1153
    i8 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1154
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1155
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1156
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1157
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1158
i9
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1159
    "prototype method to return the 9th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1160
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1161
    ^ i9
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1162
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1163
    "Created: 13.5.1996 / 21:19:26 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1164
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1165
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1166
i9:something
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1167
    "prototype method to set the 9th instance variable"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1168
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1169
    i9 := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1170
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1171
    "Created: 13.5.1996 / 21:19:27 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1172
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1173
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1174
instSize
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1175
    "return instSize - required class protocol"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1176
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1177
    ^ instSize
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1178
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1179
    "Created: 13.5.1996 / 21:19:24 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1180
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1181
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1182
instSize:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1183
    "set instSize - required class protocol"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1184
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1185
    instSize := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1186
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1187
    "Created: 13.5.1996 / 21:19:25 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1188
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1189
429
ffc4e2ab5581 cleanup
Claus Gittinger <cg@exept.de>
parents: 343
diff changeset
  1190
methodDictionary
ffc4e2ab5581 cleanup
Claus Gittinger <cg@exept.de>
parents: 343
diff changeset
  1191
    "return the methodDictionary - required class protocol"
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1192
429
ffc4e2ab5581 cleanup
Claus Gittinger <cg@exept.de>
parents: 343
diff changeset
  1193
    ^ methodDictionary
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1194
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1195
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1196
superclass
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1197
    "return superclass - required class protocol"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1198
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1199
    ^ superclass
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1200
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1201
    "Created: 13.5.1996 / 21:19:23 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1202
!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1203
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1204
superclass:something
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1205
    "set superclass - required class protocol"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1206
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1207
    superclass := something.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1208
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1209
    "Created: 13.5.1996 / 21:19:23 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1210
! !
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1211
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1212
!Structure methodsFor:'stubs'!
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1213
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1214
doesNotUnderstand:aMessage
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
  1215
    "catch unimplemented messages - pass some to the superclass.
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
  1216
     Notice that although this method calls super messages,
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
  1217
     actual instances will have no valid superClass."
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1218
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1219
    |sel args names sz s idx|
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1220
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1221
    "/ instance protocol
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1222
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1223
    sel := aMessage selector.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1224
    args := aMessage arguments.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1225
2186
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
  1226
    (sel == #displayString) ifTrue:[
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
  1227
       s := WriteStream on:''.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1228
       s nextPutAll:'Structure('.
1130
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1229
       names := self allInstVarNames.
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1230
       names notNil ifTrue:[
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1231
           names keysAndValuesDo:[:idx :nm |
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1232
               s nextPutAll:nm; nextPutAll:'->'.
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1233
               s nextPutAll:(self at:idx) displayString.
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1234
               s space
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1235
           ].
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1236
       ].
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1237
       s nextPutAll:')'.
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1238
       ^ s contents
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
  1239
    ].
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
  1240
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1241
    sel == #basicInspect ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1242
        ^ InspectorView openOn:self
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1243
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1244
1424
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
  1245
    sel == #inspectorClass ifTrue:[
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
  1246
        ^ InspectorView
eb987ab75c1f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1377
diff changeset
  1247
    ].
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1248
    sel == #inspect ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1249
        ^ InspectorView openOn:self
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1250
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1251
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1252
    sel == #instVarAt: ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1253
        |nr|
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1254
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1255
        nr := args at:1.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1256
        nr == 1 ifTrue:[^ i1].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1257
        nr == 2 ifTrue:[^ i2].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1258
        nr == 3 ifTrue:[^ i3].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1259
        nr == 4 ifTrue:[^ i4].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1260
        nr == 5 ifTrue:[^ i5].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1261
        nr == 6 ifTrue:[^ i6].
1481
c6804dfaf78a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
  1262
        nr == 7 ifTrue:[^ i7].
c6804dfaf78a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
  1263
        nr == 8 ifTrue:[^ i8].
c6804dfaf78a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
  1264
        nr == 9 ifTrue:[^ i9].
c6804dfaf78a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
  1265
        nr == 10 ifTrue:[^ i10].
c6804dfaf78a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
  1266
        nr == 11 ifTrue:[^ i11].
c6804dfaf78a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
  1267
        nr == 12 ifTrue:[^ i12].
c6804dfaf78a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
  1268
        nr == 13 ifTrue:[^ i13].
c6804dfaf78a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1424
diff changeset
  1269
        nr == 14 ifTrue:[^ i14].
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1270
        ^ nil
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1271
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1272
1129
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1273
    (sel == #'perform:') ifTrue:[
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1274
         ^ super perform:(args at:1)
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1275
    ].
1559
a11c7c231537 *** empty log message ***
penk
parents: 1486
diff changeset
  1276
    (sel == #'perform:with:') ifTrue:[
a11c7c231537 *** empty log message ***
penk
parents: 1486
diff changeset
  1277
         ^ super perform:(args at:1) with:(args at:2)
a11c7c231537 *** empty log message ***
penk
parents: 1486
diff changeset
  1278
    ].
1129
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1279
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1280
    (sel == #'=') ifTrue:[
1130
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1281
        (args at:1) class == (args at:1) ifFalse:[^ false].    "/ must be another struct
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1282
        names := self allInstVarNames.
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1283
        names notNil ifTrue:[
1377
24f668298ef1 Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents: 1243
diff changeset
  1284
            Error handle:[:ex |
1130
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1285
                ^ false
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1286
            ] do:[
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1287
                names do:[:slotName |
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1288
                    ((args at:1) perform:slotName asSymbol) = (self perform:slotName asSymbol)
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1289
                    ifFalse:[slotName halt. ^ false]
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1290
                ]
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1291
            ].
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1292
        ].
daa5e54c1a7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1129
diff changeset
  1293
        ^ true.
1129
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1294
    ].
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1295
    (sel == #'~=') ifTrue:[
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1296
         ^ super ~= (args at:1)
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1297
    ].
4951097b5191 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1037
diff changeset
  1298
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1299
    (sel == #size
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1300
    or:[sel == #basicSize]) ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1301
         ^ super basicSize
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1302
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1303
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1304
    (sel == #at:
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1305
    or:[sel == #basicAt:]) ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1306
         ^ super basicAt:(args at:1)
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1307
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1308
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1309
    (sel == #at:put:
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1310
    or:[sel == #basicAt:put:]) ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1311
         ^ super basicAt:(args at:1) put:(args at:2)
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1312
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1313
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1314
    sel == #== ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1315
         ^ self == (args at:1)
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1316
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1317
945
a42d24a15c84 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  1318
    sel == #clone ifTrue:[
a42d24a15c84 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  1319
         ^ super clone
a42d24a15c84 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  1320
    ].
a42d24a15c84 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  1321
    sel == #shallowCopy ifTrue:[
a42d24a15c84 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  1322
         ^ super shallowCopy
a42d24a15c84 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  1323
    ].
2215
8ae61b93c7eb changed: #doesNotUnderstand: - hash
Michael Beyl <mb@exept.de>
parents: 2186
diff changeset
  1324
    sel == #identityHash ifTrue:[
8ae61b93c7eb changed: #doesNotUnderstand: - hash
Michael Beyl <mb@exept.de>
parents: 2186
diff changeset
  1325
         ^ super identityHash
8ae61b93c7eb changed: #doesNotUnderstand: - hash
Michael Beyl <mb@exept.de>
parents: 2186
diff changeset
  1326
    ].
2186
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
  1327
    (sel == #isException) ifTrue:[
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
  1328
         ^ false
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
  1329
    ].
945
a42d24a15c84 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 943
diff changeset
  1330
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1331
    "/ class protocol
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1332
2186
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
  1333
    sel == #name ifTrue:[
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1334
        ^ 'Structure'
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1335
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1336
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1337
    sel == #isVariable ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1338
         ^ false
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1339
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1340
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1341
    sel == #isClass ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1342
         ^ false
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1343
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1344
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1345
    sel == #isMeta ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1346
         ^ false
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1347
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1348
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1349
    sel == #isBehavior ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1350
         ^ false
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1351
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1352
1243
b05df2fb4d9c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1131
diff changeset
  1353
    sel == #isKindOf: ifTrue:[
b05df2fb4d9c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1131
diff changeset
  1354
         ^ false
b05df2fb4d9c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1131
diff changeset
  1355
    ].
b05df2fb4d9c checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1131
diff changeset
  1356
2006
a5996b7ad0cf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1559
diff changeset
  1357
    sel == #isString ifTrue:[
a5996b7ad0cf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1559
diff changeset
  1358
         ^ false
a5996b7ad0cf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1559
diff changeset
  1359
    ].
a5996b7ad0cf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1559
diff changeset
  1360
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1361
    sel == #respondsTo: ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1362
         ^ false
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1363
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1364
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1365
    sel == #whichClassIncludesSelector: ifTrue:[
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1366
         ^ nil
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1367
    ].
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1368
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1369
    sel == #evaluatorClass ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1370
        ^ Compiler
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1371
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1372
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1373
    sel == #classNameWithArticle ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1374
         ^ self displayString
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1375
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1376
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1377
    sel == #allSubclasses ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1378
        ^ #()
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1379
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1380
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1381
    sel == #allClassVarNames ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1382
        ^ #()
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1383
    ].
1559
a11c7c231537 *** empty log message ***
penk
parents: 1486
diff changeset
  1384
    sel == #methodDictionary ifTrue:[
a11c7c231537 *** empty log message ***
penk
parents: 1486
diff changeset
  1385
        ^methodDictionary
a11c7c231537 *** empty log message ***
penk
parents: 1486
diff changeset
  1386
    ].
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1387
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1388
    sel == #allInstVarNames ifTrue:[
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1389
        methodDictionary isNil ifTrue:[
1486
c6219885aab4 print -> infoPrint
Claus Gittinger <cg@exept.de>
parents: 1481
diff changeset
  1390
            'Structure [info]: oops - nil methodDict' infoPrintCR.
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1391
            ^ #()
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1392
        ].
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1393
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1394
        sz := super basicSize.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1395
        names := Array new:sz.
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1396
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1397
        methodDictionary keysAndValuesDo:[:sel :mthd|
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1398
            |index mysel|
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1399
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1400
            (sel endsWith:$:) ifFalse:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1401
                (sel ~~ #class) ifTrue:[
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1402
                    "/
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1403
                    "/ which method is it ?
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1404
                    "/
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1405
                    idx := 1.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1406
                    [idx <= sz] whileTrue:[
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1407
                        mysel := ('i' , idx printString) asSymbol.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1408
                        mthd == (Structure compiledMethodAt:mysel) ifTrue:[
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1409
                            names at:idx put:sel.
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1410
                            idx := sz.   "/ break
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1411
                        ].
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1412
                        idx := idx + 1.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1413
                    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1414
                ]
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1415
            ]
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1416
        ].
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
  1417
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1418
         ^ names
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1419
    ].
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1420
943
5a9699ed4b9b give the dummy class another name, to avoid confusion with
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
  1421
    (sel == #instSize) ifTrue:[
5a9699ed4b9b give the dummy class another name, to avoid confusion with
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
  1422
         ^ instSize
5a9699ed4b9b give the dummy class another name, to avoid confusion with
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
  1423
    ].
1486
c6219885aab4 print -> infoPrint
Claus Gittinger <cg@exept.de>
parents: 1481
diff changeset
  1424
    'Structure [warning]: return nil for: ' infoPrint.
c6219885aab4 print -> infoPrint
Claus Gittinger <cg@exept.de>
parents: 1481
diff changeset
  1425
    aMessage infoPrint.
c6219885aab4 print -> infoPrint
Claus Gittinger <cg@exept.de>
parents: 1481
diff changeset
  1426
    ' args ' infoPrint. args infoPrintCR.
2186
7af603c810b7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2006
diff changeset
  1427
"/ Object halt.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1428
294
6f937c0ba907 fixes for new MethodDictionary
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
  1429
    ^ nil.
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1430
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1431
    "Created: 13.5.1996 / 20:22:22 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1432
    "Modified: 13.5.1996 / 21:12:54 / cg"
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1433
! !
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1434
616
b5c07da2df11 fixes & class comment
ca
parents: 429
diff changeset
  1435
!Structure class methodsFor:'documentation'!
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1436
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1437
version
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
  1438
    ^ '$Header: /cvs/stx/stx/libcomp/Structure.st,v 1.24 2010-04-07 14:53:33 cg Exp $'
2215
8ae61b93c7eb changed: #doesNotUnderstand: - hash
Michael Beyl <mb@exept.de>
parents: 2186
diff changeset
  1439
!
8ae61b93c7eb changed: #doesNotUnderstand: - hash
Michael Beyl <mb@exept.de>
parents: 2186
diff changeset
  1440
8ae61b93c7eb changed: #doesNotUnderstand: - hash
Michael Beyl <mb@exept.de>
parents: 2186
diff changeset
  1441
version_CVS
2341
d05835f10cb8 better check for behavior compatibility
Claus Gittinger <cg@exept.de>
parents: 2215
diff changeset
  1442
    ^ '$Header: /cvs/stx/stx/libcomp/Structure.st,v 1.24 2010-04-07 14:53:33 cg Exp $'
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1443
! !
1377
24f668298ef1 Convert Object>>errorSignal -> Error
Stefan Vogel <sv@exept.de>
parents: 1243
diff changeset
  1444
282
7f91d09a768b renamed
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1445
Structure initialize!