On Jul 19, 2011, at 2:44 PM, Bjarke Dahl Ebert wrote:
> Hi Factor-talk,
>
> I'm new to Factor.
>
> When I do
> { -1 } >string
> my listener hangs (version 0.94).
> I would expect a runtime error instead.
> Is this a bug?
Definitely. It appears to be a bug in the set-string-nth primitive operation.
I'll fix it.
Just to be clear, >string does an element-wise conversion of a sequence of
integers into a string, so for example, "{ CHAR: a CHAR: b CHAR: c } >string"
(or equivalently "{ 65 66 67 } >string") gives the string "abc". If you're
expecting to get a string representation of an object, you need to use
"unparse" or "number>string". Some new users get confused by that.
-Joe
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk