[Newbies] How can I create a script from within a script?

2011-02-28 Thread Steve Thomas
I am playing with the idea of creating a scripting language for kids. So given the script below p1 is being set to an object/Player named Ellipse: script2 | t1 t2 p1 | p1 := Ellipse t1 := 'forward'. t2 := 5 How can I get it to do/execute: *p1 forward: 5* Stephen

Re: [Newbies] How can I create a script from within a script?

2011-02-28 Thread Gary Dunn
The direct answer is thay it depends on how you design tour interpreter. In Squeak we fiddle in a Workspace but that is not an interpreter. We invoke the interpreter with do it or evaluate. In other scripting languages the script is a file read by the interpreter. In a smalltalk method, a

Re: [Newbies] How can I create a script from within a script?

2011-02-28 Thread Alex Schenkman
Take a look at: http://rmod.lille.inria.fr/botsinc On Monday, February 28, 2011 at 6:05 PM, Gary Dunn wrote: The direct answer is thay it depends on how you design tour interpreter. In Squeak we fiddle in a Workspace but that is not an interpreter. We invoke the interpreter with do it or

Re: [Newbies] How can I create a script from within a script?

2011-02-28 Thread Bert Freudenberg
On 28.02.2011, at 08:31, Steve Thomas wrote: I am playing with the idea of creating a scripting language for kids. One way would be to just generate Smalltalk code that does what you want, and compile it into a new method. But writing your own interpreter as you suggest below would work, too.

[Newbies] The Weekly Squeak Summary No. 23: Jan 31 - Feb 27, 2011

2011-02-28 Thread Michael Haupt
Dear Squeakers, welcome to this edition of The WeeklySqueakSummary, an (in principle) monthly but somewhat traffic-dependent report on what's going on in the world of Squeak based on the WeeklySqueak blog. Again, we did not have too many posts during the past four weeks - two this time. The big

[Newbies] Returned values

2011-02-28 Thread Gary Dunn
While studying DBus code I came across a method that appears to set a class variable and return the value. In DBusConnection sessionBus ^SessionBus := self getBus: 0 from: SessionBus and SessionBus is a class variable. Why return the value? Why not have the sender examine the value of

RE: [Newbies] Returned values

2011-02-28 Thread Ron Teitelbaum
Hi Gary, This is a good question. The code is probably lazily instantiating the variable so that it can be used somewhere else. If the class variable was private to the class and not intended to be used by another class and you were only planning on calling it from the class side then it

Re: [Newbies] Returned values

2011-02-28 Thread Gary Dunn
Wow, a reply right from the author. I am beginning to understand (1%) DBus. Your terrific browser led me to understand I should look for Gnome signals in Gnome, that the solution will need to be platform dependent ... still in the dark how that will pan out. One can learn a lot by reading good

Re: [Newbies] Squeak Download/Installation

2011-02-28 Thread David Mitchell
Nothing else to download, that's what is great about the All-in-one. If you are on Unix, run squeak.sh from the unpacked contents. If you are on windows, run squeak.lnk (shortcut to Squeak.exe) On mac, the folder itself is an app. On Mon, Feb 28, 2011 at 7:10 PM, michael rice nowg...@yahoo.com

Re: [Newbies] Squeak Download/Installation

2011-02-28 Thread michael rice
Got it working. Looks good. Another quick question: if I run application with the outer squeak.sh and I decide I want to save the image, does it save the new image over the bundled image, replacing it? Michael --- On Mon, 2/28/11, K. K. Subramaniam kksubbu...@gmail.com wrote: From: K. K.