|
- What is so special about Smalltalk? [closed] - Stack Overflow
In every technical publication, and on this site too, people are always comparing OO languages to Smalltalk My experience is in Java: is Smalltalk so important that I should study it?
- What is the correct way to define and call functions in GNU Smalltalk . . .
Then where how did you define it? I'm a little rusty, and different Smalltalk environments do certain things (like defining stuff in the workspace) differently, but generally, Smalltalk is very very object-oriented
- smalltalk - How to read write objects to a file? - Stack Overflow
I would like to write an object (a simple collection) to a file I've been looking around and found this question and this question I also went through a lot of sites with broken links etc, but I
- What is the difference between self and yourself in Smalltalk?
In Smalltalk, there are two terms often found within a method body: self and yourself What is the difference between them?
- What is the idiomatic way to define an enum type in Smalltalk?
7 The closest Smalltalk feature to an enum type is the SharedPool (a k a PoolDictionary) Therefore, if you are porting some enum from, say, Java to Smalltalk, you might want to use a SharedPool Here is how to do so: For every enum in your type you will define an association in the pool with key the type name and value the type value
- smalltalk - How is Small talks message to:do: implemented behind the . . .
Everything in smalltalk is an object and the objects interact through messages I couldn't understand how the above code is understanding the message to:do: How is it able to iterate the block from 1 to 10? How does it know it has to repeat the block that many number of times? Can someone explain what happens under the hood?
- Smalltalk: whats the difference between and and:
Welcome to Smalltalk! You are asking a good question that points out some subtle differences in expressions that are outside or inside blocks The ' ' message is a "binary" message so takes only one argument In this case the argument is expected to be a Boolean or an expression that evaluates to a Boolean Most importantly for our purposes in this comparison, the expression will always be
- smalltalk - Check if an object is an instance of a given class or of a . . .
I agree with Igor Moreover, "nicest and most elegant" is in the eye of the beholder What isInteger and friends do is definitely faster as they are a single message send that immediately returns true false versus isKindOf: which has to loop up the class hierarchy The downside for some people is that you have to add a isSomeClass method to Object which returns false
|
|
|