smalltalk
metaclass & constructors
It is my understanding that it is difficult to create constructors of classes in Smalltalk and Objective-C. This is because the constructor can\'t be a message of a class instance because the class Cl[详细]
2023-03-12 09:58 分类:问答What's the difference of Squeak/Pharo/Newspeak Smalltalk VMs?
I saw 3 different VMs while learning abou开发者_如何学编程t Smalltalk. They are Squeak/Pharo/Newspeak. What\'s the difference between them?Squeak and Pharo are different dialects of Smalltalk, while N[详细]
2023-03-12 08:35 分类:问答Is there a way to note type at each message parameters on Smalltalk? (like Objective-C)
Objective-C is a language like Smalltalk, but weakly, dynamically typed language. And I can note type of each message parameter at in-place optionally.[详细]
2023-03-12 04:49 分类:问答How to look at image code in GNU Smalltalk?
how can I look at class / message code from within开发者_如何学JAVA the GST command line interface?[详细]
2023-03-12 02:14 分类:问答Adding/Overriding/Edit Body Methods to Class (Smalltalk - Squeak)
How can I ad开发者_StackOverflowd new methods or remove methods of a specific Class? Or, if I try to add a method which already exists so it will override it (although at this case I can just remove t[详细]
2023-03-02 16:28 分类:问答Method Inspection Squeak/Smalltalk
I am trying to do some method inspection (in Squeak - Smalltalk). I wanted to ask what is the way to check if a method is an abstract method?[详细]
2023-03-02 10:25 分类:问答smalltalk public initialize
Is there any way to \"hide\" initialize method so it couldn\'t be called after construction? I would like somethi开发者_如何学Pythonng like:[详细]
2023-02-28 19:35 分类:问答Image is hanging, what next?
I was following t开发者_StackOverflow社区he tutorial on Magma from the awesome Seaside book and at one point my image got stuck completely. I was in the debugger at that moment and I\'ve tried to run[详细]
2023-02-28 17:15 分类:问答Event Handling in Smalltalk(squeak)
How can I create my own开发者_Go百科 events in Smalltalk?I am basically looking for some software events that can be triggered when some particular event happens.In classic Smalltalk (supported by Squ[详细]
2023-02-28 09:41 分类:问答Modifying the contents of a closure
Is there a better way to do it than: aBlock| aBlock := [3+2]. aBlock := Object readFrom: (a printString copyReplaceAll: \'3\' with: \'2\').[详细]
2023-02-27 01:16 分类:问答