Questions tagged [smalltalk]

Smalltalk is one of the oldest object-oriented programming languages. It pioneered many aspects modern developers take for granted: Virtual Machines (Smalltalk is an interpreted language) IDEs Pure object approach (no primitives or keywords at all) Closures (called Blocks) An image (i.e. non-file-based language) Advanced debugging techniques (halting programs on-the-fly, inspection, writing or modifying code on-the-fly)

Smalltalk is one of the oldest object-oriented programming languages. It pioneered many aspects modern developers take for granted:

  • Virtual Machines
  • IDEs
  • Pure object approach (no primitives types at all, and even nil is an object)
  • Library-based language (with only a handful of reserved keywords)
  • Closures (called Blocks)
  • An image (i.e. non-file-based language)
  • Advanced debugging techniques (halting programs on-the-fly, inspection, writing or modifying code on-the-fly)
  • Comes in various flavours and dialects, from full-blown commercial solutions to open-source community-based ones

Free Smalltalk Programming Books

1696 questions
1
vote
1 answer

How do I display the new Squeak background in my trunk image?

I have a Squeak 4.3 image that I have updated through 4.4 by using the trunk update stream, which pulls down source code updates from the Monticello repository here How do I get the new 4.4 desktop? In particular, how do I replace the brown antique…
dcorking
  • 1,146
  • 1
  • 14
  • 24
1
vote
2 answers

Accessing instance variables in an eventhandler with smalltalk

I'm pretty new to smalltalk and an apparently easy problem drives me crazy. My own class inheritates from the Morphic class and overwrites keyStroke keyStroke: anEvent Transcript show: myDigitClass. (((anEvent keyValue) > 47) and: ((anEvent…
norty
  • 227
  • 2
  • 6
1
vote
1 answer

Zinc HTTP Components and VisualWorks

is there a way to use the Zinc HTTP Components in VisualWorks and has anybody done this successfully? Henrik
Henrik Guschov
  • 317
  • 1
  • 8
1
vote
2 answers

Smalltalk: How to make a hyperlink

In smalltalk, How can I add to string a link example : I have a string str = "trial string" I want to add another string to it but when I click on it I go to some destination and str will appear like trial string and SomeLocation
becks
  • 2,656
  • 8
  • 35
  • 64
1
vote
3 answers

How to install OSProcess in Pharo?

I want to use OSProcess to execute external programs in Linux and MacOS from Pharo 1.4. I've followed other post install instructions but when I evaluate (PipeableOSProcess command: 'pwd') output asFileReference it hangs the VM under Ubuntu. For…
user183928
  • 783
  • 3
  • 9
1
vote
3 answers

How can i get a new line in smalltalk?

I want to to display the numbers in the following format using smalltalk code 1 1 2 1 2 3 1 2 3 4 I wrote the following code | i j y k | i :=1. j :=1. y:= ('y' at: 1 put: $ )out. (i<=4)ifTrue: [ i to: 4 by:1 do:[:i | …
Sampath Rudra
  • 21
  • 1
  • 4
1
vote
3 answers

Local variables in compile text stream (smalltalk)

I'm trying to overwrite the #new message in MyObject. The problem is that when the text gets compiled, the local variables, disp and oldNew are changed to t1 and t2 respectively (I'm using Squeak 4.3) and then it can't send oldNew to self. I could…
Itamar Bitton
  • 777
  • 2
  • 7
  • 25
1
vote
1 answer

How to get rid of unmanaged code in VW 3.1d and ENVY

I have an old VW3/ENVY image with a parcel loaded as unmanaged code (exactly the situation Mastering ENVY/DEVELOPER warns against). Unfortunately, this problem happened a long time ago and it's too late to just "go back" to an image without the…
Kim Sullivan
  • 943
  • 2
  • 10
  • 15
1
vote
3 answers

How to install UIBuilder on Pharo

I'm learning Smalltalk for my graduation (Computer Science), and got started using Pharo. I've read and watched that there is a nice framework for UI building, called UIBuilder tool. But I'm confused on how to install it on Pharo.
cawecoy
  • 2,359
  • 4
  • 27
  • 36
1
vote
2 answers

Forking run method in a model. What should the priority be?

I am making a small game in smalltalk, with a use timers. An object appears every second, and the game lasts 10. If i run a while loop for 10 seconds, i cannot capture any input from the controllers as well as display it in the view. So i have made…
Bartlomiej Lewandowski
  • 10,771
  • 14
  • 44
  • 75
1
vote
2 answers

VisualWorks Smalltalk - set slider value at runtime

I have a slider and want to change its value in some function. I tried with something like this: (builder componentAt: #SliderR) widget model setValue: 124. but it doesn't work. (value has changed but the marker remains in the same position).
1
vote
1 answer

How to access a class resource in an instance

I am trying to make a simple game, so far i can capture user input, but i cannot get the view to work properly to print the images. If i have a resource named image, how do i assign individual sprites to display this image on displayOn? I have tried…
Bartlomiej Lewandowski
  • 10,771
  • 14
  • 44
  • 75
1
vote
1 answer

Smalltalk, text editor value

How I can insert OrderedCollection into the text editor? I tried to do something like that: texeditor value:list printString where list is my OrderedCollection. The result was OrderedCollection('4''2''1') in the text editor, but I would like to…
ContentPenalty
  • 447
  • 1
  • 5
  • 14
1
vote
1 answer

How to read only one character from stdin without waiting for pressing ENTER?

I have CLI implementation for my VisualWorks application. There is "IOAccessor defaultClass stdin" and I want to read one character without waiting for user enter press. It is possible? in C language there is function like getCh ...
borovsky
  • 873
  • 1
  • 9
  • 15
1
vote
1 answer

How to clip Image or cut unwanted parts?

How to do that in Smalltalk? I was trying to do it using BoundedWrapper, but image was not appearing. Can Image use BoundedWrapper? Or: Is a method to cut Image without wrapping?
borovsky
  • 873
  • 1
  • 9
  • 15
1 2 3
99
100