You can do number>string for numbers and unparse for most anything else.

SYMBOL: foo
foo unparse

24.5 number>string

Doug

On Feb 27, 2008, at 8:51 AM, Nikhil Marathe wrote:

> Hello all,
> I'm new to factor, and I was wondering if there is an equivalent for
> Python's __repr__ or __str__ or Java's Object.toString().
>
> I mean '.' and the pretty print module allow printing to stdout,  
> but is
> there any word which just puts the representation on the stack.
>
> Thanks!
>
> Nikhil
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ 
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to