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

Smalltalk and MySQL

I need to do a project in Smalltalk and use relational database. I am a bit confused as I can not find much help on relational database and I need to finish the project in 20 days. Can someone please point me to a nice tutorial with examples or is…
j10
  • 2,009
  • 3
  • 27
  • 44
1
vote
2 answers

Using SelectionInList with SortedCollection?

Using Visualworks (Cincom Smalltalk), and a List widget, how does one use a SortedCollection along with SelectionInList? For instance, how do I initialize a SelectionInList with a SortedCollection? I'm confused about the process, and I can't find…
user1106831
1
vote
2 answers

Smalltalk custom buttons for Dialog

Is there a way to customize the buttons for Dialog? Dialog confirm has two buttons (yes/no), but I would like to change the value of the buttons to something else other than (yes/no). I have been looking for ways to do this, but the given Dialog…
Henry Cho
  • 770
  • 2
  • 15
  • 33
1
vote
2 answers

Smalltalk own new method

Object subclass: Node [ |value| new [ Transcript show: 'Test'. value := 6. ] getValue [ ^value. ] set:sth [ value := sth. ] ] |data| data := Node new. Transcript show: (data…
Fuv
  • 922
  • 2
  • 12
  • 25
1
vote
1 answer

Smalltalk, using 'value' on BlockClosure

I am trying to create a method for the existing BlockClosure class. This is a method we wrote on the board in class, but it is not behaving exactly as I'd want it to. This is the code: BlockClosure extend[ times: count[ count = 0 …
Isaac
  • 2,246
  • 5
  • 21
  • 34
1
vote
0 answers

Read open sound control's packets in Smalltalk VisualWorks 7.9.1

Does anyone have an idea where to find an open sound control reader for visualworks? I inspected the Siren project and the OSC VW project but they are made to send OSC packets however my objectif is to read some OSC packets coming from…
SolidSnake87
  • 343
  • 3
  • 12
1
vote
3 answers

Smalltalk collections and sorting

I need a collection of items in which I can perform selection sort in Smalltalk. What's the best thing to use? List, set, linkedlist, etc.?
kaka
  • 11
  • 2
1
vote
1 answer

Visualworks mcz packages import with Monticello

I'm trying to program a client for multitouch gestures using TUIO under SmallTalk/Visualworks. In order to get the mcz package for TUIO, I'm using Monticello. The problem is that whenever i try to load a package with Monticello, i always end…
SolidSnake87
  • 343
  • 3
  • 12
1
vote
1 answer

Error handling For SMTPClient

[SMTPClient deliverMailFrom: sender to: recipient text: message usingServer: 'mail.google.com'] on: Error do:["Transcript show:'Sumthing went wrong'"]. If SMTPClient raises an Error saying TelnetProtocolError or…
Irfan
  • 303
  • 1
  • 8
1
vote
1 answer

Streaming over a text

I am trying to stream over text and get values that can be assigned to sender and recipient to send mail with SMTPClient |message sender recipient Stream peek| message:= 'To: myemail@gmail.com, otheremail@yahoo.com From:…
Irfan
  • 303
  • 1
  • 8
1
vote
1 answer

Carriage returns in WebNonHTMLResource

I create the following WebElement: WebNonHTMLResource forText: ('This is', Character cr asString, 'a test') However, when this is displayed in the browser, the text will look like this: This is a test The carriage return has not been taken into…
Cantillon
  • 1,588
  • 1
  • 12
  • 23
1
vote
1 answer

Creating a Message object that will accept values from method and keeps adding them

Trying to send email through methods. I have a method addHeader: headername with: aString |email| email:= aString. 'To'= headername ifTrue[ self message: 'To:', with ]. 'From'= headername ifTrue[ self message: 'From:', with]. 'Subject'=…
Irfan
  • 303
  • 1
  • 8
1
vote
1 answer

Seaside Smalltalk Removes Comments on Accept

I've searched all the internet to find an answer, and I really have no idea how to fix this: When I ctrl-s (Accept) sth in System Browser, all my comments are removed and the code is automatically formatted in the way I wouldn't like it to be. What…
szymciolop
  • 57
  • 4
1
vote
2 answers

Testing anOrdered Collection

|email addressList| email:= ',abcd ,'. addressList:= MailAddressParser addressesIn:email. Above code will get me an Ordered collection which will include all the strings, though 'abcd' is not a valid email id its…
Irfan
  • 303
  • 1
  • 8
1
vote
2 answers

ad hoc polymorphism in smalltalk

How is this done in smalltalk without using an if-test or is-a tests for typechecking? for example : function Add( x, y : Integer ) : Integer; begin Add := x + y end; function Add( s, t : String ) : String; begin Add := Concat( s, t ) end;
Jeremy Knees
  • 652
  • 1
  • 7
  • 21
1 2 3
99
100