Bug or feature ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug or feature ?

marcelo Cortez
hi all


 try

 stream := WriteStream on: OrderedCollection new.
 stream nextPut: 1. "any thing"
 fail

i try this script in VW and Squeak with sucess , what is wrong?
TIA
  MDC


Reply | Threaded
Open this post in threaded view
|

Re: Bug or feature ?

Bill Schwab-2
>  try
>
>  stream := WriteStream on: OrderedCollection new.
>  stream nextPut: 1. "any thing"
>  fail
>
> i try this script in VW and Squeak with sucess , what is wrong?

IIRC, the behavior is by design (to match Smalltalk 80 behavior), though I
_think_ OA decided to "fix" it, because it is strange that a growable
collection would refuse to grow in this scenario.  For now, you can replace
OrderedCollection with Array to get it to work.

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]