| I missed that "," the first time. I found it interesting that the "," gets evaluated as a symbol though. Jared Parsons |
| Like Jared says in the box. Nice one, Allen! Mark Guzdial |
| Thanks. I didn't even realize they didn't show up Jared Parsons |
| My guess is because it is in a explicit array assignment (ie #(element1 element2), methods are not called. Go ahead and create a string foo and then try to make an array be #(foo size), it creates an array of (foo size) not an array with the size of foo in it. The concatenation method then doesn't get called. Stephen Ingram |
| Good experiment, Stephen! It all has to do with how the #( ) construct is evaluated. That's why it's actually better (more intuitive) to create an array with message sends, e.g., Array with:with:with: Mark Guzdial |