[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fileOut & methodCategory
From: |
Quenio |
Subject: |
fileOut & methodCategory |
Date: |
Sat, 06 Feb 2021 15:28:32 -0300 |
Hello,
I was wondering if someone may have run into the following issue.
In the test below, the method's category has been set after the method
had been defined. Should it be expected the method's new category to be
filed out with the method's block?
st> Object subclass: #Test.
my.Test
st> Test extend [
st> test [
st> self subclassResponsibility
st> ]
st> ]
st> (Test >> #test) methodCategory: 'test'.
Test>>test
st> (Test >> #test) methodCategory.
'test'
st> Test fileOutOn: stdout.
"Filed out from GNU Smalltalk version 3.2.5 on 6-Feb-2021 18:17:35"
Smalltalk.Object subclass: Test [
<category: nil>
<comment: nil>
test [
self subclassResponsibility
]
]
If the behavior above is expected, would it be possible to do some sort
of refresh/decompilation before executing the fileOut?
Also, would there be a better way to fileOut all classes in a namespace
/ package?
Thanks in advance,
Quenio
- fileOut & methodCategory,
Quenio <=