Try putting parentheses around `aDescriptorSystemClassName asSymbol`: descriptorSystem := DynamicDescriptorSystem subclass: (aDescriptorSystemClassName asSymbol) instanceVariableNames: '' classVariableNames: '' package: packageName asString On Fri, Jul 29, 2016 at 10:50 AM Brad Selfridge <bsselfridge@gmail.com> wrote:
I'm trying to programmatically generate a new class, but am getting the following error:
DynamicDescriptorSystem class(Object)>>doesNotUnderstand: #subclass:instanceVariableNames:classVariableNames:package:
This is the method that I'm trying to execute:
buildNewDescriptorSystemUsing: aDescriptorSystemClassName
descriptorSystem := DynamicDescriptorSystem subclass: aDescriptorSystemClassName asSymbol instanceVariableNames: '' classVariableNames: '' package: packageName asString
I see examples of this all over Pharo and I copied this code almost verbatim.
What am I doing wrong?
----- Brad Selfridge -- View this message in context: http://forum.world.st/Programmatic-generation-of-new-class-tp4908659.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.