|
From: | Matthew D Swank |
Subject: | Re: StepTalk Segfaults |
Date: | Sun, 20 Feb 2005 14:52:55 -0600 |
User-agent: | Mozilla Thunderbird 1.0 (X11/20050209) |
Stefan Urbanek wrote:
if someone would like to investigate it, I can give him few pointers. Regards, Stefan Urbanek
Well I am experimenting with blocks. My latest test is: "-------------------------------------------------" |main sub| sub := [:continuation | Transcript show: '\n begin sub'. Transcript show: '\n |-- Objective C --|'. continuation value. Transcript show: '\n end sub'.]. main := [:continuation | Transcript show: '\n begin main'. Transcript show: '\n |-- StepTalk --|'. sub valueWith: [Transcript show: '\n |-- ANSI C --|'. continuation value.]. Transcript show: '\n end main'.]. Transcript show: '\nbegin program'. main valueWith: [Transcript show: '\nend program'.]. "-------------------------------------------------" I believe the output should be: begin program begin main |-- StepTalk --| begin sub |-- Objective C --| |-- ANSI C --| end program but I get: begin program begin main |-- StepTalk --| begin sub |-- Objective C --| |-- ANSI C --| |-- ANSI C --| |-- ANSI C --| |-- ANSI C --| ... ad infinitum.What do I need to look at in terms of how StepTalk scopes compiles and interprets blocks?
Matt
[Prev in Thread] | Current Thread | [Next in Thread] |