Been trying to debug this code for a while but I can't seem to understand the problem at hand. The program that I'm making is a Smalltalk program that ...
Been trying to debug this code for a while but I can't seem to understand the problem at hand. The program that I'm making is a Smalltalk program that ...
I chose to try out Smalltalk for AOC 2022 puzzle 4. I'm predicating on each line and increment the counter if the constraints are met. I'm trying to u ...
When using gnu smalltalk (without emacs integration) what commands/process does one use to explore the contents of a namespace ? For example, I want t ...
I'm new to Smalltalk so I don't know if I'm doing something wrong but this seems very weird and buggy. This code works fine and correctly print ...
This is my current code, but I get a compilation error: "Object: Array new: 4 "<0x7fe20936e940>" error: did not understand #bin:left:right:". ...
Working thro the guide making a new class. I can make a new or load an image file (.im) using gst command. I type in the code to make a Account class ...
I'm having trouble with Smalltalk. Is there some operator like "is in" or "is contained / included"? I have classes Student and Exam (with attribute ...
I am struggling to find out is there a way to feed input to the interactive command of gst a.st b.st ... - and redirect the output. Normally, the inte ...
I wanted to get the list of methods of a class if their implementation has at least two occurrences of a word 'assert' in Smalltalk. Can somebody hel ...
I am new to Smalltalk and am trying to figure out how to take in a command line argument as a filename. I've seen this following snippet online: Bu ...
I'm working on a Smalltalk small method, I want this method to iterate over a dictionary array and to return True or False depend on the conditions. ...
I'm attempting to solve AoC problem 12 part 2 in Smalltalk. The specific aren't super relevant, but here's the relevant portion of a single-dimensiona ...
I wonder why this is not terminating in GNU Smalltalk: s := Set new. s add: s In theory, s should be simply a set containing an empty set. But execu ...
I find that there is no built-in trim (strip) method to remove leading and trailing spaces from strings in the built-in String class. I want to extend ...
I am trying to create a class with string trimming functions: However, it is not running and giving following error: Where is the problem and ...
I am trying following block to trim leading spaces from the sent string: It works without any error but does not remove leading spaces from the se ...
I am trying to write a method which returns a new value. Following code is modified from here: Although above function creates new string and disp ...
Following simple code to list files in a directory is from here: However, it is not working and giving following error: I am working on GNU Sm ...
I am trying to use gnu-smalltalk. In following code of a simple class with a variable, I find it is not getting initialized to the given value: Th ...
I am just starting to use gnu-smalltalk. I have taken following code from here to define a class: However, I am not able to create any instances o ...