On Sun, Apr 03, 2005 at 05:28:44PM +0800, Autrijus Tang wrote: : On Sat, Apr 02, 2005 at 09:32:12PM -0500, Stevan Little wrote: : > I was writing tests for split(<regexp>, <str>) and I stumbled upon this : > bug: : > : > pugs -e 'split(rx:perl5//, "not good")' : > : > Will go into an infinite loop. I also tried the empty regexp in a match : > on it's own, and it was not a problem. : > : : Fixed, but I have not implemented the full weird awk semantics.
Don't work too hard on that--we'll probably find some way of making those semantics explicit, perhaps with a separate function, perhaps with an optional argument. (Now that builtins are just functions out in * space, we can probably afford to throw a few more convenience functions out there for common operations like word splitting and whitespace trimming. (Specific proposals to p6l please.)) Larry