1. quick print ??

Bernie

new topic     » topic index » view message » categorize

2. quick print ??

Is there a function out there that lets me print
sequences, objects and atoms to a file instead of
standard out the same way that quick print "?" does.

PS: Rob, Why isn't there a print routine in the interpreter 
like quick print "?" that allows me to print to a
a selected file instead of standard output ?
This would be make debugging alot easier when working with big sequences 
that you truncate in your error messages ? 
Most all of the code to do this is already written in the source. 

Bernie

new topic     » goto parent     » topic index » view message » categorize

3. Re: quick print ??

--by David Cuny?
function print_format( object o )

    -- returns object formatted for wPrint
    sequence s

    if atom( o ) then
        -- number
  if o >= ' ' and o <= '}' then
   return sprintf( "%d'%s'", {o,o} )
   --return sprintf( "%s", o )
  else   
   return sprintf( "%d", o )
  end if
    else
        -- list
        s = "{"
        for i = 1 to length( o ) do
            s = s & print_format( o[i] )
            if i < length( o ) then
                s = s & ","
            end if
        end for
        s = s & "}"
        return s
    end if

end function

----- Original Message ----- 
From: "Bernie Ryan" <xotron at localnet.com>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, June 01, 2002 9:36 PM
Subject: quick print ??


> 
> Is there a function out there that lets me print
> sequences, objects and atoms to a file instead of
> standard out the same way that quick print "?" does.
> 
> PS: Rob, Why isn't there a print routine in the interpreter 
> like quick print "?" that allows me to print to a
> a selected file instead of standard output ?
> This would be make debugging alot easier when working with big sequences 
> that you truncate in your error messages ? 
> Most all of the code to do this is already written in the source. 
> 
> Bernie
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: quick print ??

Bernie Ryan writes:
> Is there a function out there that lets me print
> sequences, objects and atoms to a file instead of
> standard out the same way that quick print "?" does.

See print() in library.doc

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu