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
_______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
