Skip to content

Commit

Permalink
Added GsContext>>tempNamed: (for compatibility with the test in Pharo…
Browse files Browse the repository at this point in the history
… 10)
  • Loading branch information
vagrant committed Mar 20, 2022
1 parent 9167782 commit 1604506
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
tempNamed: aString
| index |
index := self tempNames indexOf: aString asSymbol.
index = 0
ifTrue: [ Error raiseSignal: 'No such temp: ' , aString ].
^ self tempAt: index

0 comments on commit 1604506

Please sign in to comment.