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
1
vote
1 answer

In Squeak Smalltalk, what can I do to display a number in any base I want?

I have done a basic arithmetic calculation and got the answer aa Here is the Smalltalk code in Squeak: Transcript show: 'aa='. Transcript show: 23124234 * 431213; cr. The output is aa=9971470315842 9971470315842 is a decimal number. What can I…
1
vote
1 answer

Extracting the return value in Squeak (Smalltalk)

I want to extract the return value from a given text that represents a method. for example: g: x and: y Transcript show: x; show: y. ^x+y. so to solve I used the regular expression: \^\s*(\w+.*). when I run this on some regex websites it seems to…
1
vote
3 answers

Squeak doesn't run on Mac OS Sierra

Currently, I want to learn Smalltalk to understand more about object oriented programming, and I have spent quite some time to find the tutorials to learn it. Finally, I decided to go with Squeak. I downloaded the all in one package 64 bit at the…
Fatima
  • 345
  • 1
  • 5
  • 15
1
vote
1 answer

Compiling c code to a Dynamic-Link-Library

I have a .c file generated from Squeak that I need to compile to a dll for use as a plugin, but I don't know how. I have tried searching the internet, but all I can find is information on how to compile c# and c++ to a dll. The code that was…
1
vote
1 answer

Squeak SecureSMTPClient to send HTML email

I am having trouble figuring out how to send an html e-Mail using SecureSMTPClient. The e-Mail client always shows it as plaintext, which means that the MIME is not getting set, i.e. SecureSMTPClient forgets to send: MIME-Version: 1.0 Content-Type:…
Bernd Elkemann
  • 23,242
  • 4
  • 37
  • 66
1
vote
1 answer

Add imagemorph to rectangle

I have a rectangle in smalltalk like this cell := RectangleMorph new extent: 70@70; position: (500 + (aPositionWidth))@(100 + (aPositionHeight)); color: lastCellColor. I'm trying to add an image to each rectangle like this: queen :=…
user3132295
  • 288
  • 4
  • 23
1
vote
1 answer

Change position and dimensions of submit button

How do I go about changing the position and dimensions of a submit button in smalltalk/squeak? This is what I have so far: submitButton: aModel ^PluggableButtonSpec new model: aModel; label: 'submit'; action: #submitName; …
Mahmud Adam
  • 3,489
  • 8
  • 33
  • 54
1
vote
3 answers

Where can I find a Pharo+Seaside3+Magritte image for experimenting with the "An Introduction to Seaside" book?

Where can I find a Pharo image to run the code from this book: http://www.swa.hpi.uni-potsdam.de/seaside/tutorial Scoured the mailing lists for a Pharo alternative and they were supposed to be http://www.lukas-renggli.ch/job/Magritte%202/, then…
unom
  • 11,438
  • 4
  • 34
  • 54
1
vote
1 answer

Smalltalk clone detector

Does anybody know any clone detection tool for smalltalk source code? I'm about to try Nicad3, but I was wondering if there're tools around. Thanks!
Klerisson
  • 312
  • 1
  • 2
  • 17
1
vote
4 answers

Converting Ordered Collection to Literal Array

I have an ordered collection that I would like to convert into a literal array. Below is the ordered collection and the desired result, respectively: an OrderedCollection(1 2 3) #(1 2 3) What would be the most efficient way to achieve this?
AnimalTesting
  • 127
  • 2
  • 10
1
vote
1 answer

How do the various smalltalk VMs provide cross-platform graphics for morphic?

For example, Pharo and Squeak are different implementations of Smalltalk. Are there specific bindings in the smalltalk VM for each platform?
dave paola
  • 1,815
  • 3
  • 16
  • 27
1
vote
2 answers

How to display the contents of a dictionary in a morph in smalltalk?

Because I don't seem to be able to find some predefined Morph that can display the contents of a Dictionary, I decided I'd better stop looking and wanted to create my own Morph. I found a nice description how to start with some nice example code to…
1
vote
2 answers

How can I call a method in Squeak?

I am investigating Squeak Smalltalk. Somehow I defined an object that initializes and prints the initial value (the instructions for that were in homework). Then I had to define a method (getName), which I did, but I don't know what to do to call…
1
vote
5 answers

How to get the bytes that makeup an integer?

In Smalltalk (or at least Squeak and Pharo), is there a portable way to get the bytes that make up an integer, starting with the most significant byte followed by the next-most, and so on, regardless of byte-ordering differences across platforms?
Reynald
  • 11
  • 1
1
vote
1 answer

How to get name of superclass according to class in smalltalk

I know how to get a metaclass of a class in SMALLTALK (with class message ). But how do i get the SuperClass of a class (or get the SuperClass of an instance of some class )?
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40