Hi all,

I added a little bit of runtime type checking to stream-write. Now, if
you pass something that's not a string to a character stream, you get
an error:

( scratchpad ) "foo.txt" ascii [ { 1 2 3 } write ] with-file-writer
Generic word encoder-write does not define a method for the array class.
Dispatching on object: { 1 2 3 }

This makes certain errors easier to catch, but it does mean that some
code might need to be updated (eg, if you do 123 CHAR: x <repetition>
write or similar).

The behavior of byte streams is unaffected by this change.

Slava

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to