Hi, The current behavior, which indeed is preserved in the Playground because we did not get to revisit it yet, is like that: - if you do not define a variable explicitly, it will appear red. - if you run the code, the variable will be automatically define within the scope of the Playground/Workspace object which lives as long as the window does - thus, essentially you get a kind of a persistent variable that survives an execution - that is the reason why you can inspect the variable and get the result that it has accumulated - one source of confusion is that after you run the code, the variable still remains red. However, after you type one character, it gets blue.
Ideally, we should have a more interactive way of defining variables and have an overview available at all times. Cheers, Doru On Mon, Dec 29, 2014 at 1:27 AM, Edward Povazan <empova...@gmail.com> wrote: > Interesting - when I use Playground, the variable is red at first. After > the first doit, it turns blue, I assume because it is now bound to an > object. When I inspect after the initial doit, I get an inspector with the > real object. > So ... installing GToolkit on Pharo 3 is the answer :) > > -Edward > > On Dec 28, 2014, at 10:23 AM, kilon alios <kilon.al...@gmail.com> wrote: > > yes that is an issue I have as well and it seems that it also continues in > Pharo 4 Playground. But generally should not affect your code. > > On Sun, Dec 28, 2014 at 4:32 PM, nacho <0800na...@gmail.com> wrote: > >> First of all thanks for all the responses. I should have checked the class >> comment first. >> >> I agree with Kilon, if I use a temporary variable in a workspace after >> doing >> the code if I inspect it the object is gone whereas doing it the way Kilon >> does the object is still there. >> Now why in my Pharo images Workspace variable (I suppose this is the >> correct >> term isn't it?) are in red and in Kilon's awesome tutorials are in blue? >> best regards >> Nacho >> >> >> >> >> >> ----- >> Nacho >> Smalltalker apprentice. >> Buenos Aires, Argentina. >> -- >> View this message in context: >> http://forum.world.st/Question-on-temporal-variables-in-Workspace-tp4797161p4797208.html >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >> >> > -- www.tudorgirba.com "Every thing has its own flow"