Any reason for assigning block parameter in inject:into:

Stéphane Ducasse stephane.ducasse at univ-savoie.fr
Sat Apr 28 06:32:35 UTC 2007


Hi

I would like to know if there are any reason (except in imageSegment) to
assign to inject:into: parameter.

we saw String asPacket

asPacked
	^ self
		inject: 0
		into: [:t1 :t2 | t1 := t1 * 256 + t2 asInteger]

The assignment is not needed since the semantics of into: is to do  
that exactly



More information about the Squeak-dev mailing list