[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Re: your mail



On Thu, 15 Jun 2000, tarik wrote:

> Now the error is,
> 
> ns: dump _o15 1: invalid command name "1-0"
>     while executing
> "expr $delay+1"
>     (procedure "dump" line 11)
>     invoked from within
> "dump _o15 1"

[This is just going to lead to another email exchange...]

You originally asked about

> > > "set $jitter [[expr $delay+1]-$delay]"

Haobo pointed out that 'set jitter ...' would be correct, as for other
set use in your code.

A correct version of the above would be:

set jitter [expr [expr $delay+1]-$delay]

or

set jitter [expr ($delay+1)-$delay]

or

set jitter 1

That's obviously not useful, but at least it gets past that error, and
hey, it's what you appear to want to say.

The only error worth complaining about is 'No target for slot -1',
since that generally indicates a really subtle problem.

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>