On Fri, 2005-02-18 at 23:13 -0600, Matthew Swank wrote:
> Can anyone tell me why:
>     StepTalk > [:x :y|[:z | x + y + z] valueWith:3] valueWith:5 with:7.
>     (0) 15
> works ok while:
>     StepTalk > a := [:x :y|[:z | x + y + z] valueWith:3].
>     (1) <STBlock: 81bf428>
>     StepTalk >  a valueWith:5 with:7.
>     Segmentation fault
> does not?
> 

It works in a script. Try test.st with following lines:

  a := [:x :y|[:z | x + y + z] valueWith:3].
  Transcript showLine:(a valueWith:5 with:7).

I do not know, why it does not work in the shell, perhaps the block was
no more valid... It needs deeper investigation.

Stefan Urbanek
-- 
http://stefan.agentfarms.net

First they ignore you, then they laugh at you, then they fight you, then
you win.
- Mahatma Gandhi




_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to