Any reason for assigning block parameter in inject:into:
bryce at kampjes.demon.co.uk
bryce at kampjes.demon.co.uk
Sun Apr 29 21:52:45 UTC 2007
tim Rowledge writes:
> The difference is that both you, Bert, and Colin are quite versed in
> Smalltalk. Anyone looking at Smalltalk as if it were C or some other
> dismal bit-mangling nonsense might very well be seeing the method
> parameter(s) as pointers.
C copies the arguments and allows you to change them. Just
like Smalltalk would if we allowed arguments to be changed.
I think Pascal didn't allow arguments to be changed. Personally
I'm happy with the status quo, but could live with mutable
arguments too.
Bryce
More information about the Squeak-dev
mailing list
|