Nov. 2, 2021
1:41 p.m.
You can just create
On 27 Oct 2021, at 11:07, Jupiter Jones <jupiter.jones@mail.com> wrote:
Does anyone know how to remove a trait programatically?
you could use the class installer / class builder, e.g. imagine you have: Object subclass: #MyVisitor uses: TRBProgramNodeVisitor instanceVariableNames: '' classVariableNames: '' package: âPackageTestâ you can now remove the Trait with: ShiftClassInstaller make: [ :aClassBuilder | aClassBuilder fillFor: MyVisitor. aClassBuilder traitComposition: { } ] Marcus