Re: Suggestion for pretty_print()
Bernie Ryan wrote:
> While your at it; how about an option in the ex.err dump
> to turn off the mixing of the numbers in a text sequence.
> when I am looking at a crashed file I want to just see the
> text in large sequences instead of spending a half hour
> try to decipher character embedded with their numeric equivelents.
With pretty_print() the programmer gives me some idea of
how he wants his output to look. With an ex.err dump,
I don't know whether data should be displayed as a number
or as a character, so when the value is in the range of
an ASCII character, I display it both ways. This may be hard
to read, but it's better than if I guess wrong and display
a bunch of gibberish characters, or a bunch of ASCII codes,
forcing the programmer to pull out an ASCII chart and
decipher it.
It might be possible for me in the future to add a field to
the symbol table that says whether a variable is
"almost certainly character", "almost certainly numeric"
or "unknown", based on what I can tell from all the
assignments to it. I don't know how well that would work though.
In 2.5, you can create a crash routine. You could program it
to display some of your major data structures in a nicely
formatted way.
Regards,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com
|
Not Categorized, Please Help
|
|