Skip to content

Commit

Permalink
Add P10-specific methods to CardanoTartagliaContext
Browse files Browse the repository at this point in the history
This commit adds some `Context` methods introduced after P8 to 
`CardanoTartagliaContext`. With this new methods, Refinements-Tests
all pass on P10.
  • Loading branch information
janvrany committed Apr 21, 2023
1 parent c361a13 commit f9e1888
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CardanoTartaglia/CardanoTartagliaContext.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ CardanoTartagliaContext class >> ofVariables: aDictionary [
yourself
]

{ #category : #'accessing - P10' }
CardanoTartagliaContext >> compiledCode [
^self method
]

{ #category : #'smalltalk context' }
CardanoTartagliaContext >> dummyMethod [
]
Expand Down Expand Up @@ -69,6 +74,11 @@ CardanoTartagliaContext >> method [
^CardanoTartagliaContext >> #dummyMethod
]

{ #category : #'accessing - P10' }
CardanoTartagliaContext >> readVariableNamed: aString [
^self tempNamed: aString
]

{ #category : #'smalltalk context' }
CardanoTartagliaContext >> receiver [
^nil
Expand All @@ -88,3 +98,8 @@ CardanoTartagliaContext >> tempNamed: aString put: value [
CardanoTartagliaContext >> tempNames [
^env keys
]

{ #category : #'accessing - P10' }
CardanoTartagliaContext >> writeVariableNamed: aString value: anObject [
^self tempNamed: aString put: anObject
]

0 comments on commit f9e1888

Please sign in to comment.