[etoys-dev] SQ-903 - Object displayed name does not always match name used to refer to object in scripts

Scott Wallace scott.wallace at squeakland.org
Sat Mar 26 06:16:23 EDT 2011


On Mar 26, 2011, at 3:10 AM, Scott Wallace wrote:
> 
> 	foundPlayer := ActiveWorld presenter reallyAllExtantPlayersNoSort
> 		detect:	[:p |(p costume externalName = 'Cat') and: [p costume isInWorld])]
> 		ifNone:	[nil].
> 	foundPlayer ifNotNil:
> 		[ <proceed to do something to or with foundPlayer...>  ]


Oops, left an extra right-paren in there by mistake.  The correct code would be:

	foundPlayer := ActiveWorld presenter reallyAllExtantPlayersNoSort
		detect:	[:p |(p costume externalName = 'Cat') and: [p costume isInWorld]]
		ifNone:	[nil].
	foundPlayer ifNotNil:
		[ <proceed to do something to or with foundPlayer...>  ]


More information about the etoys-dev mailing list