>> You want "{x. y} printNl" instead of #(x y).
>
> Hi, may I ask what the braces do there? Are there making some kind of block so
> that printNl effects both of them?
The #(...) syntax is only for constant arrays. Non-constant arrays are
created with the "tuple syntax" {x. y} (each element is separated by a
period.
> I should create an array of x and y because, in my actual code, I am passing it
> to a method which take an array as argument. I didn't understand why it gives
> "stdin:6: expected true, false or nil" error.
Within constant arrays the only symbolic variables that are allowed are
true, false and nil.
Paolo
_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk