Skip to content

Commit

Permalink
Merge pull request #16 from BastouP411/feature/distinct-print
Browse files Browse the repository at this point in the history
Changed back MpMethodProxy to inherit from Object
  • Loading branch information
guillep committed Jul 4, 2023
2 parents b10f57b + eae430a commit 3ab62e6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/MethodProxies/MpMethodProxy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This package is developed and maintained by S. Ducasse, G. Polito and P. Tesone,
"
Class {
#name : #MpMethodProxy,
#superclass : #ProtoObject,
#superclass : #Object,
#instVars : [
'selector',
'methodClass',
Expand All @@ -37,6 +37,14 @@ Class {
#category : #MethodProxies
}

{ #category : #'reflective operations' }
MpMethodProxy class >> doesNotUnderstand: aMessage [

^ CompiledMethod
perform: aMessage selector
withArguments: aMessage arguments
]

{ #category : #'instance creation' }
MpMethodProxy class >> on: selector inClass: aClass handler: aHandler [

Expand Down Expand Up @@ -69,6 +77,14 @@ MpMethodProxy >> = anObject [
^ self == anObject
]

{ #category : #accessing }
MpMethodProxy >> calypsoEnvironmentType [
^ proxifiedMethod
ifNotNil: [ proxifiedMethod calypsoEnvironmentType ]
ifNil: [ super calypsoEnvironmentType ]

]

{ #category : #initialization }
MpMethodProxy >> class: aClass selector: aSymbol [

Expand Down

0 comments on commit 3ab62e6

Please sign in to comment.