Re: New trace window feature
- Posted by Vincent <darkvincentdude at yahoo.com> Jan 10, 2006
- 501 views
Robert Craig wrote: > > Alan Oxley wrote: > > Hi Rob & group, > > Please consider this for the nice to have list: > > When querying a sequence variable with the ? char, how about the response > > showing the length and nesting level of the displayed sequence? > > > > While we can add another line of source just above the traced point > > to set a junk variable equal to the length, we would have to edit > > the source...this can be tedious for many variables. > > > > Possibly in pretty_print() too? > > Yes, in trace, I've often wondered what the length of a > long sequence is. I'll consider it. It might > clutter the display though. > > Thanks, > Rob Craig > Rapid Deployment Software > <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a> What you can do is introduce a "$" trace command, that prompts for the name of a sequence variable. It could be equivelent to "length(seqvar)". If the user tries to use it on atoms and integers, have it issue a warning message on the command line. Regards, Vincent