-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to learn some Smalltalk. Fisrt found was Squeak, but since it has been removed from Gentoo ebuild tree because of security problem, so I decided to find an alternative.
Then I found Pharo through Seaside project, after I downloaded Pharo 1.0 package, there are actually a SqueakVM inside…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Large part of squeak is implemented using squeak itself. I am curious to know if pseudo variables such as self or true are also implemented using squeak. If the answer is yes, where the implementation located?
Specifically, assume that I want to add new subclass of "Boolean" called "Other" which…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
How can you invoke shell commands from Squeak and Pharo? Do these environments have anything in them like the system() function in certain unix languages to run external shell commands, or the backticks (can't make them here do to the editor, but what you get when you push the key left of "1" and…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
printThisMethodSig: aSomething
stack := thisContext stackOfSize: 2.
Transcript show: (stack at: 2); cr.
stack at: 2 returns the method context of the current method. It is possible to retrieve the compiled method of the current method using method message. I want to be able to print the whole signature…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have been suggested to use should:rise in my test case to test for errors that a method might raise. For some reason it does not work as axpected, so I want to verify that I'm doing it right. Here is the code in the test case:
self should: [aMyClass compareTo: 'This is a string'] raise: 'invalid…
>>> More