1. New trace window feature

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?

Regards,
Alan

new topic     » topic index » view message » categorize

2. Re: New trace window feature

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
   http://www.RapidEuphoria.com

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

3. Re: New trace window feature

On Mon, 09 Jan 2006 04:17:04 -0800, Alan Oxley
<guest at RapidEuphoria.com> 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?

One way to solve the length part is to allow ? length(s)   -  and at
the same time one of my top wishes for the debug window, ? s[357].

Regards,
Pete
PS Sure, ?s[i] would be handy no doubt, but ?i followed by ?s[357], 
 - if needbe, keep it simple.

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

4. Re: New trace window feature

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

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

5. Re: New trace window feature

While we're on the trace subject I would like to be able to display an element
within a sequence. If you have very  long sequences it would be nice to ask
to display bigsequence[25] for example.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu