This one is also interesting:

StepTalk > a := [:x :y|[:z | x + y + z]] valueWith:3 with:5.
(0) <STBlock: 81cc260>
StepTalk > a valueWith:7.
Error (NSInvalidArgumentException): GSMutableDictionary(instance) does not recognize isValid
StepTalk > ([:x :y|[:z | x + y + z]] valueWith:3 with:5) valueWith:7.
(1) 15


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?

Matt.




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

Reply via email to