Questions tagged [gnu-smalltalk]

GNU Smalltalk is a free implementation of the Smalltalk-80 language. It runs on most POSIX compatible operating systems (including GNU/Linux, of course), as well as under Windows. Smalltalk is a dynamic object-oriented language, well-versed to scripting tasks.

GNU Smalltalk is a free implementation of the Smalltalk-80 language. It runs on most POSIX compatible operating systems (including GNU/Linux, of course), as well as under Windows. Smalltalk is a dynamic object-oriented language, well-versed to scripting tasks.

115 questions
0
votes
2 answers

How to Check if objectA has all message as objectB in smalltalk?

I am using smalltalk - i need to check if objectA has all the messages(methods) that objectB has . i need to write my own code, how could it be done ?
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40
0
votes
1 answer

Smalltalk change variable value

I'm learning Smalltalk, but I didn't found any example of how change variable value. How can I do it? Object subclass: test [ | testvar | "setvalue [ Function to change value of variable 'testvar' ]" getvalue [ …
Matheus.M.
  • 67
  • 1
  • 7
0
votes
1 answer

Initialize a Rectangle inside a class

I have a class named Map. I want to initialize a rectangle from the Rectangle class origin: 0 @ 0 corners: 50 @ 40 inside the Map. So, when I try in workspace as myMap := Map new. it should return me (0 @ 0) corner: (50 @ 40). I have…
Seo
  • 3
  • 2
0
votes
2 answers

Smalltalk user defined subclass issue.

I have created a class named animal and I want to create two subclasses of that class I just created lynx and rabbit. However when ever I try to compile the program I get the following error on the line where I define my first subclass of animal,…
user2793027
  • 83
  • 1
  • 3
  • 15
0
votes
2 answers

Smalltalk parse error

I am new to smalltalk and i am having trouble figuring out why I am getting this parse error. The error is: /newanimal.st:52: parse error, expected ')' I trying to loop through the set named grid, which is a collection of dictionaries and in each…
user2793027
  • 83
  • 1
  • 3
  • 15
0
votes
2 answers

Identify IDE by seeing the application in smalltalk

How to identify which smalltalk IDE/implementation is used by seeing an desktop application developed in smalltalk?
SBS
  • 1
0
votes
2 answers

Smalltalk usage of printFormat: method

Can someone please give me an example of how to use the printFormat: method in Smalltalk to format a string? Eg: '123456789' printFormat: aFormat should return something like $123,456,789.00
Aditya Kappagantula
  • 564
  • 1
  • 7
  • 21
0
votes
1 answer

Invalid Input Exception Handling - SmallTalk

Let a smalltalk msg named "sum" return the sum of elements in an array. Eg: #(1 2 3 4 5) sum ----> 15 When the input is #(1 2 'a' 3 5) sum. The execution terminates and shows a big exception box. Instead of that how can we gracefully exit the…
Aditya Kappagantula
  • 564
  • 1
  • 7
  • 21
0
votes
1 answer

vwnt pop up in smalltalk

When I try to open my smalltalk project file vwnt pops up. The project wont open. I did save the project properly last time I was working on it. Please help if anyone know how to resolve this issue.
Adroit
  • 701
  • 1
  • 6
  • 18
-1
votes
2 answers

Not understanding basic symbol '|'

I am just starting to use gnu-smalltalk. I have taken following code from here and trying to run it with gst command. display_etc | pipe | pipe := FileStream popen: 'ls -l /etc' dir: FileStream read. Transcript showCr: pipe…
rnso
  • 23,686
  • 25
  • 112
  • 234
1 2 3 4 5 6 7
8