smalltalk
Smalltalk: Writing output to a file
Usually with my output I am writing it 开发者_如何学Cto the Transcript with... Transcript show: How does one write the output to a file instead?You want to use a FileStream[详细]
2023-01-22 09:17 分类:问答How do I copy a stacktrace out of the debugger in Pharo?
How do I copy a stacktrace out of the debugger in Pharo? I know there\'s the Debug.log file somewhere near the image, but I\'m far too lazy to navigate out of Pharo, to the file system, find the fold[详细]
2023-01-22 04:56 分类:问答How to mark expected failures in SUnit?
How can I mark a unit test in SUnit (or phexample) as expec开发者_Python百科ted failures?Overwrite expectedFailures in your test. There\'s an example in WeakSetTest:[详细]
2023-01-21 16:21 分类:问答Constructing an Interpreter in Smalltalk
I need to build an interpreter in smalltalk language. It will interpret a simple language with few fixed instruction set, there are only 2 data types in it and 开发者_开发百科it evaluates the expressi[详细]
2023-01-21 12:22 分类:问答doesNotUnderstand for JavaScript?
Is there a way to si开发者_运维百科mulate Smalltalk\'s doesNotUnderstand or Ruby\'s method_missing in Javascript?There is no catch-all method defined in the JavaScript standard, but Mozilla implements[详细]
2023-01-20 11:10 分类:问答How is "self class" used? / How to query the Pharo image?
There are two main开发者_StackOverflow社区 reasons for calling \"self class\": Either for doing user-space things such as invoking static methods, creating new objects or obtaining constants. Or for r[详细]
2023-01-17 23:29 分类:问答Adding stuff to run on startup of Pharo Image
I\'d like to add stuff to run at the beginning of a pharo image start-up. Nothing fancy just a call to a class method that is an entry point to my application.[详细]
2023-01-16 08:52 分类:问答string to integer in smalltalk
i want to convert the input value in \"Prompter prompt: aStringPrompt\" into a integer value, how can i do 开发者_StackOverflow中文版that?Two steps: (a) validate the input, and (b) convert.[详细]
2023-01-13 21:08 分类:问答Making an HTTP request in Pharo and getting the response headers
how can I make an HTTP request and get both the respons开发者_运维技巧e content and the response headers?Or using the new Zinc framework, something like:[详细]
2023-01-12 10:35 分类:问答Why is smalltalk not a functional programming language?
With the renewed interest in functional programming languages, I\'ve seen some similitudes between Smallt开发者_Python百科alk and FPL, namely closures ( BlockClosures in Smalltalk )Yet, Smalltalk is n[详细]
2023-01-12 03:25 分类:问答