Re: New question on strings
- From: Andreas Leitgeb <avl@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 28 Feb 2008 20:04:12 GMT
tom.rmadilo <tom.rmadilo@xxxxxxxxx> wrote:
proc ::num::get {} {
variable i ;#[possibly accidentally missing here]
return [incr i]
}
These are not typos, these are examples where things work, and the
original intent is not obvious. If someone were to look at the code,
with the bug, and tried to write up a regression test, is their job
made easier?
Most surely, they'd include in their test-suite some check to see, if
the variable was actually incremented. If it was, then fine, if it
wasn't then the bug is already almost found.
.
- References:
- New question on strings
- From: mark
- Re: New question on strings
- From: mark
- Re: New question on strings
- From: Gerald W. Lester
- Re: New question on strings
- From: tom.rmadilo
- Re: New question on strings
- From: Neil Madden
- Re: New question on strings
- From: tom.rmadilo
- Re: New question on strings
- From: tom.rmadilo
- New question on strings
- Prev by Date: Re: need a tiny help with my SWIG'd program
- Next by Date: Re: tcl 8.5 and tix
- Previous by thread: Re: New question on strings
- Next by thread: Re: New question on strings
- Index(es):
Relevant Pages
|