Re: [DOS] "print" sequence showing *ascii* contents?
I modified Gabriel's print.e slightly so that even strings would be printed
with {} around them, instead of "", so I can use it to see variable
structure clearest; is this likely to make any kind of problem, like if it's
used to print to a file?
Dan
----- Original Message -----
From: "Michael Nelson" <MichaelANelson at WORLDNET.ATT.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, October 29, 2000 10:14 PM
Subject: Re: [DOS] "print" sequence showing *ascii* contents?
> Dan,
>
> Gabriel Boehme has something in the archives that does this.
>
> -- Mike Nelson
> ----- Original Message -----
> From: "Dan B Moyer" <DANMOYER at PRODIGY.NET>
> To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Sent: Sunday, October 29, 2000 9:54 PM
> Subject: [DOS] "print" sequence showing *ascii* contents?
>
>
> > Is there a library command somewhere, or a simple routine, or something
> that
> > I'm missing, that would work like "print", to show the structure of a
> > variable, but with all the "contents" translated into ascii so it's
easier
> > to see what has been put into any variable? (this is for debug
purposes)
> >
> > So that, for instance, instead of seeing this as a result of "print"ing
a
> > variable:
> >
> > {{{80,114,101,100,101,102,105,110,101,100,32,84,121,112,101,115},
> > {{105,110,116,101,103,101,114},{97,116,111,109},
> > {115,101,113,117,101,110,99,101},{111,98,106,101,99,116}},...
> >
> > I would see (at least) this:
> > {{{P,r,e,d,e,f,i,n,e,d, ,T,y,p,e,s},
> > {{i,n,t,e,g,e,r},{a,t,o,m},
> > {s,e,q,u,e,n,c,e},{o,b,j,e,c,t}},...
> >
> > I could make *much* better sense of any errors in assignment to a
variable
> > (or of construction) in the second instance than in the first.
> >
> > Dan Moyer
> >
|
Not Categorized, Please Help
|
|