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
