You can do:

[ { 10 20 30 } pprint ] string-out

On Wed, Feb 27, 2008 at 4:00 PM, Jorge Acereda <[EMAIL PROTECTED]> wrote:

> On Wed, Feb 27, 2008 at 3:51 PM, Nikhil Marathe <[EMAIL PROTECTED]>
> 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.
> >
>
> I don't think there's something like that, but given that you can
> output to a string stream you can get similar results.
>
> Try something like:
>
> [ 100 . ] string-out
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>



-- 
float e,a,b,c,d;int i;main(){for(b=0;b<4;b
+=.091){for(a=0;a<4;a+=.051){c=0;d=0;for(i
=99;--i&&c*c+d*d<4;)e=c*c-d*d+a-2,d=2*c*d+
b-2,c=e;putchar(". ยท*%#"[i&5]);}puts("");}}
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to