From: Vince D. <vi...@sa...> - 2005-08-30 22:39:06
|
The bug is there in Alphatk too, but different - your first example causes a crash. The second example: > search -w "untitled" -all -f 1 -r 1 -- {X|\rX|\nX} [minPos] 1.0 1.1 1.2 2.1 2.2 3.1 3.2 4.1 4.2 5.1 Looks ok to me -- no overlaps in sight. But the same example with {X+|X*\n|\nX*} again crashes. > On Aug 30, 2005, at 02:43 PM, Joachim Kock wrote: > I'm not sure if this is relevant or not, but according to "Extending > Alpha" one should never assume that numerical "index" positions > returned by something like [regexp -indices] are valid positions, > even in AlphaX. If the windowing system ever changes, we don't want > to have to reform old code. Using [pos::math] and friends is the > recommended method for proper conversion of indices to valid > positions, even if this is not "required" by AlphaX at present. That's true -- it is indeed the recommended way. Vince. |