Questions tagged [squeak]

Squeak is a modern, open-source implementation of the Smalltalk language, with a history of being very easy to port across platforms. See https://squeak.org/.

Squeak started in 1996 as a project of Alan Kay and friends at Apple. They wanted an open source Smalltalk with a view to building Smalltalk's replacement.

Among its features:

  • The Virtual Machine is written in (a subset of) Smalltalk.
  • Runs bit-identically across all its platforms.
  • Very easy to port: it runs on Linux, Macs (both old and new), Windows, iPhones, iPads, and even bare metal.
412 questions
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
1 answer

circle inside a square in Smalltalk

I draw a circle inside a square in Smalltalk But I want to reduce it size by 10% so i tried to write it like that: initialize | circleWidth circleHeight| super initialize. self label: ''. self borderWidth: 0. bounds := 0@0 corner: 70@70. …
Yuval Levy
  • 2,397
  • 10
  • 44
  • 73
0
votes
1 answer

smalltalk squeak error: "Instances of undefinedObject are not indexable"

I have problem many time understanding the errors i get in the squeak program, and unable to fix and debug it. like in this case: I wrote the following code is smalltalk language in squeak: initilize super initialize. path := OrderedCollection…
Yuval Levy
  • 2,397
  • 10
  • 44
  • 73
0
votes
1 answer

Squeak extensions of the system using HELP menu option

In squeak 4.3 if one follows the menu choices help/extending the system, one is faced with a window displaying text that is commenting some smalltalk expressions. It seems these expressions are aimed at "extending" the system. My questions are: (1)…
Sharphawk
  • 499
  • 4
  • 8
0
votes
2 answers

Validating parameter as a class in Squeak Smalltalk

How can I validate a parameter as a class object? For example, if I want to validate aparameter as string I could write param1 isString. Is there something like isClass?
gigman
  • 213
  • 2
  • 9
0
votes
1 answer

Context-menus in Squeak

I am using Squeak (can't use Pharo), and I have a Morphic application and I wish to add my own custom Context-menu (I don't want to add to or use the Halo menu). How do I build my menu and make it come up on a right-click (yellowButton, sigh)? I…
RAL
  • 917
  • 8
  • 19
-1
votes
2 answers

Java how to open an exception on a new thread than the one which threw the exception

I wish to harvest the exception stack to open debugger on new Thread while unblocking the thread which threw the original exception. Is it possible in Java? In Squeak, this method does the work: StandardToolSet>>#debugException: anException …
rabbit
  • 111
  • 9
1 2 3
27
28