Reputation: 33
I have created a class in visual works smalltalk, added a method (for example: list) but when I called it in workspace it shows error like message not understood #list.
Thank You in Advance.
Upvotes: 0
Views: 58
Reputation: 2433
I'm sure you sent the message to the class and not to the instance, so you need to send #new first.
If you create a Class like "Foo" and add an instance method like "bar", you need to evaluate:
Foo new bar
Upvotes: 1