Changeset 5926 for lang/smalltalk

Show
Ignore:
Timestamp:
01/31/08 08:19:41 (10 months ago)
Author:
murky-satyr
Message:

lang/smalltalk/misc/gost.st: Miner fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/smalltalk/misc/gost.st

    r5750 r5926  
    9696, o 
    9797  ^(UnicodeString with: self), (o isCharacter ifTrue: [ {o} ] ifFalse: [ o ])! 
    98 + n 
    99   ^Character codePoint: codePoint + n! 
     98+ o 
     99  o isInteger and: [ ^Character codePoint: codePoint + n ] 
     100  self doesNotUnderstand: (Message selector: #+ arguments: {o})! 
    100101- o 
    101102  o isInteger   and: [ ^Character codePoint: codePoint - o ]. 
    102   o isCharacter and: [ ^codePoint - o codePoint ]! 
     103  o isCharacter and: [ ^codePoint - o codePoint ] 
     104  self doesNotUnderstand: (Message selector: #- arguments: {o})! 
    103105* n 
    104   ^UnicodeString new: n withAll: self! 
     106  o isInteger and: [ ^UnicodeString new: n withAll: self ] 
     107  self doesNotUnderstand: (Message selector: #* arguments: {o})! 
    105108~ c 
    106   ^UnicodeString withAll: 
    107     ((codePoint to: c codePoint) collect: [:v| Character codePoint: v ])! 
     109  o isCharacter and: [ ^UnicodeString withAll: 
     110    ((codePoint to: c codePoint) collect: [:v| Character codePoint: v ]) ] 
     111  self doesNotUnderstand: (Message selector: #~ arguments: {o})! 
    108112<- o 
    109113  ^Golf.Dic at: self put: o! 
     
    228232  ^(self contents subStrings: (Golf.Dic at: $/)) \ b! 
    229233 
     234 
    230235"[ Not-so-golf Additions ]" 
    231236 
     
    300305 
    301306!SelfAssigner class methodsFor: 'initialization'! 
    302 initialize 
     307isolate 
    303308  superclass := nil! 
    304309 
     
    309314  value := o! 
    310315! 
    311 SelfAssigner initialize! 
     316SelfAssigner isolate!