Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Consider FMProperty default value when comparing slots
  • Loading branch information
fouziray committed Jul 19, 2024
1 parent ee00fe1 commit 3d276dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/Fame-Core/FMProperty.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ FMProperty >> defaultValue: aValue [
defaultValue := aValue
]

{ #category : #comparing }
FMProperty >> hasSameDefinitionAs: otherSlot [

^ (super hasSameDefinitionAs: otherSlot) and: [
defaultValue = otherSlot defaultValue ]
]

{ #category : #testing }
FMProperty >> isFameSlot [
^ true
Expand Down
10 changes: 5 additions & 5 deletions src/Fame-Core/Object.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ Object >> metaDescriptionIn: aMetamodel [
]

{ #category : #'*Fame-Core' }
Object >> metamodel [

^ self class metamodel
Object class >> metamodel [
^ nil
]

{ #category : #'*Fame-Core' }
Object class >> metamodel [
^ nil
Object >> metamodel [

^ self class metamodel
]

{ #category : #'*Fame-Core' }
Expand Down

0 comments on commit 3d276dd

Please sign in to comment.