Changeset 5926 for lang/smalltalk
- Timestamp:
- 01/31/08 08:19:41 (10 months ago)
- Files:
-
- 1 modified
-
lang/smalltalk/misc/gost.st (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/smalltalk/misc/gost.st
r5750 r5926 96 96 , o 97 97 ^(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})! 100 101 - o 101 102 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})! 103 105 * n 104 ^UnicodeString new: n withAll: self! 106 o isInteger and: [ ^UnicodeString new: n withAll: self ] 107 self doesNotUnderstand: (Message selector: #* arguments: {o})! 105 108 ~ 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})! 108 112 <- o 109 113 ^Golf.Dic at: self put: o! … … 228 232 ^(self contents subStrings: (Golf.Dic at: $/)) \ b! 229 233 234 230 235 "[ Not-so-golf Additions ]" 231 236 … … 300 305 301 306 !SelfAssigner class methodsFor: 'initialization'! 302 i nitialize307 isolate 303 308 superclass := nil! 304 309 … … 309 314 value := o! 310 315 ! 311 SelfAssigner i nitialize!316 SelfAssigner isolate!
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)