List Info

Thread: Re: Re: Object>>#do: ???




Re: Re: Object>>#do: ???
country flaguser name
Italy
2007-06-07 01:04:58
> Though one might moreover expect
> 
> | arrayResult |
> arrayResult := aMessage sendTo: .
> (arrayResult isArray and: [arrayResult size = 1])
>     ifTrue: [arrayResult first]
>     ifFalse: [arrayResult]

So "5 asArray == 5" 

Paolo


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )