Skip to content

Commit d5f54a6

Browse files
committed
GsDevKit/GsDevKit_home#321: a bit of a hack to avoid calling GsFile>>print: when it isn't present ... simpler than trying to do it at package level
1 parent 08a29a7 commit d5f54a6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/tonel/SuperDoit-Core/SuperDoitExecution.class.st

+5-3
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,11 @@ SuperDoitExecution >> stdout [
361361

362362
{ #category : 'private' }
363363
SuperDoitExecution >> ston: anObject on: aStream [
364-
(SuperDoitExecution globalNamed: #'STON')
365-
ifNotNil: [ :ston | ston put: anObject onStreamPretty: aStream ]
366-
ifNil: [
364+
| stonClass |
365+
((GsFile respondsTo: #'print:')
366+
and: [ stonClass := SuperDoitExecution globalNamed: #'STON' ])
367+
ifTrue: [ stonClass put: anObject onStreamPretty: aStream ]
368+
ifFalse: [
367369
"if STON is not present, then our best bet is to print the object"
368370
aStream
369371
nextPutAll: anObject printString;

rowan/project.ston

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RwProjectSpecificationV2 {
88
#packageFormat : 'tonel',
99
#packageConvention : 'Monticello',
1010
#comment : ''
11-
}
11+
}

0 commit comments

Comments
 (0)