smalltalk Questions

5

I just started to learn Smalltalk, went through its syntax, but hasn't done any real coding with it. While reading some introductory articles and some SO questions like: What gives Smalltalk the ...
Pl asked 5/1, 2020 at 7:34

3

I'd like to know what is the life cycle of a class (or object), I mean, when it gets into memory and is alive answering messages until finally gets removed from memory. My assumptions are: Since...
Lashondalashonde asked 6/2, 2020 at 17:21

3

Solved

I want to extend the String class with a method to create a url slug out of a string. I found a link here that shows how you can move extensions to their own package: Smalltalk Daily 07/13/10: Ext...
Greatnephew asked 2/2, 2011 at 1:18

1

Solved

What exacly is the usage of . in Smalltalk? Based on my understanding, it is the separator of different statements, but can be omitted if statement is at the end. Is that correct?
Handbook asked 7/1, 2020 at 8:0

1

I'm trying to understand difference between objects/messages in Smalltalk and processes/messages in Erlang. I read the following post on the topic. As far as I understand, in Smalltalk, everything...
Judie asked 27/10, 2019 at 9:17

3

Solved

I'd like to know about the things that make Morphic special.
Frost asked 1/11, 2010 at 15:44

2

I would like to use Smalltalk (Pharo) to better refactor my image processing and computer vision code/algorithms, written in other languages. I have not found a lot of examples online where Smallta...
Sheerlegs asked 23/4, 2016 at 0:6

2

Solved

Since Twitter changed their website design, I cannot get a set of tweets from any account by using built-in Zinc classes. It throws an error that says: ConnectionClosed: Connection closed while wai...
Euphonious asked 6/8, 2019 at 12:36

2

I am new with Squeak Smalltalk. How I can catch a button click event and execute some code when the button is clicked. I tried this code but it doesn't work! I created a new Button Class: Simple...
Nigrify asked 12/12, 2015 at 19:46

5

Solved

Is it possible to overload operators in Smalltalk? I am looking for tutorials/examples. Thanks.
Coruscation asked 30/6, 2011 at 5:41

4

Solved

Just wondering if you can mark a method as pending to implement in pharo, like you can do in java using "todo" I'ts really hard for me to keep track of what's complete on pharo without something l...
Maomaoism asked 27/3, 2019 at 21:51

4

Solved

In Pharo 7, I am trying to get the first number of characters of a string, or just the whole string (if the requested number of characters exceeds the length of the string). However, the following...
Sherikasherill asked 4/2, 2019 at 12:20

2

Solved

When you start a code sending not implemented message, Pharo launches debugger. As far as I understand it works through Object >> doesNotUnderstand, which trigger exception, and this leads t...
Preface asked 2/2, 2019 at 19:42

2

Solved

I am currently reading a file like this: dir := FileSystem disk workingDirectory. stream := (dir / 'test.txt' ) readStream. line := stream nextLine. This works when the file is utf-8 encoded but...
Rsfsr asked 26/3, 2018 at 13:34

1

Solved

I'm confused about why this code seems to work fine in isolation, but I get an error when I put it all together. The following snippet prints 'Hello World!' when printed: | blah | blah := 'Hello ...
Tenaille asked 17/1, 2019 at 0:29

2

Solved

Here is the (simplified) EBNF section I'm trying to implement in PetitParser: variable :: component / identifier component :: indexed / field indexed :: variable , $[ , blah , $] field :: variable...
Sarpedon asked 15/1, 2019 at 22:43

6

Solved

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 back...
Maccarthy asked 13/9, 2009 at 1:40

4

I used to develop with Smalltalk which is totally interactive in the way that you can change code in any browser (including the debugger) and the change becomes immediately effective in the a...
Heliotropism asked 27/9, 2018 at 10:11

3

Solved

Recently, I started to learn cuis-smalltalk, and no I realize how profound and deep OOP with Smalltalk is compared to CLOS (I'm using Ruby). I learned the great idea of that Smalltalk is a reflecti...
Generally asked 10/8, 2018 at 13:28

1

Solved

I know that the implementation signals a MessageNotUnderstood exception, but how does that end up opening a debugger?
Twiddle asked 16/7, 2018 at 13:43

2

Solved

It seems Smalltalk implementations misses an algorithm which return all the indices of a substring in a String. The most similar ones returns only one index of an element, for example : firstIndexe...
Kylstra asked 4/7, 2018 at 17:43

0

I have a Pharo extension that adds promises to Pharo Smalltalk. I then use the promise extension to do a bank transfer with the following bank application.An account contacts the bank in order to t...
Brendon asked 29/4, 2018 at 12:43

1

Solved

I have a scenario where a class holds two instance variables that are mutually exclusive. That is only one can be instantiated at a time. To be precise, I have a Promise class (trying to add promis...
Bobble asked 27/4, 2018 at 22:37

1

Solved

I am implementing futures in Pharo. I came across this website http://onsmalltalk.com/smalltalk-concurrency-playing-with-futures. I am following this example and trying to replicate it on Pharo. Ho...
Rah asked 21/4, 2018 at 22:37

4

Solved

i want to do something like this: Transcript show: '\n'. how?
Switchback asked 19/5, 2009 at 8:58

© 2022 - 2024 — McMap. All rights reserved.