smalltalk
How to open a txt File in Squeak4.1
Friend, How can open a txt file in Squeak4.1 ,the code Shall be like this: at: #f put: (FileStreamopen: \'/root/test\'mode: FileStream rea开发者_JS百科d) ![详细]
2023-02-10 07:05 分类:问答Does sample code exist for Squeak Smalltalk?
can anybody give some hints on squeaksource or things like that, they can provide mcz sam开发者_Go百科ple code focuse on simple add, reduce, multiplication, division calculation?http://www.world.st/ i[详细]
2023-02-10 02:21 分类:问答stateful command pattern
I was wondering what is the best way to represent an edit form in the context of domain model and I ended up with the command design pattern.[详细]
2023-02-08 16:38 分类:问答Referencing the selected text in a textarea
Is there a w开发者_StackOverflow中文版ay to retrieve the text that\'s currently selected in a text area in Seaside?You can do it with jQuery/Javascript.[详细]
2023-02-08 02:18 分类:问答Best way to extend Pharo Smalltalk class behavior?
I want to extend the String class with a method to create a url slug out of a st开发者_如何学JAVAring. I found a link here that shows how you can move extensions to their own package:[详细]
2023-02-07 20:28 分类:问答What's the Clojure equivalent of inject:into: in Smalltalk?
I\'m trying to learn Clojure but my synapses seem to be hard-wired to Smalltalk. What\'s the equivalent of this function?[详细]
2023-02-07 13:39 分类:问答Explain a piece of Smalltalk code?
I cannot understand this piece of Smalltalk开发者_JS百科 code: [(line := self upTo: Character cr) size = 0] whileTrue.[详细]
2023-02-07 06:08 分类:问答smalltalk error handling
I\'ve read some beginner\'s introductions to smalltalk and there is one topic that\'s missing. It\'s error handling. How is it done? Do o开发者_运维百科bjects throw some kind of exceptions? Send some[详细]
2023-02-07 04:00 分类:问答How do I replace a message body programmatically in Smalltalk?
As part of some testing, I\'m looking to, temporarily, replace the contents of a message with one that will return a predictable set of test values. What is the standard Smalltalk-y way to do this typ[详细]
2023-02-06 14:29 分类:问答How to embed a google analytics script (new version) on a seaside app
I implemented at the way of use a FileLibrary. Then I\'ve the following code: updateRoot: anHtmlRoot 开发者_如何学运维super updateRoot: anHtmlRoot.[详细]
2023-02-05 17:38 分类:问答