'match' side-effect interacts with '_htSet'

2009-02-16 Thread Tomas Hlavaty
Hi Alex, I have a web application which displays a page by loading an allowed *.l file. In that *.l file, I use 'match' with @Z pattern var and then process and display the result. The var @Z is set by 'match' to whatever was matched and displaying the data for the first time works fine.

Re: 'match' side-effect interacts with '_htSet'

2009-02-16 Thread Alexander Burger
Hi Tomas, time fails with bad suffix error as the var @Z in '_htSet' was rebound by my call to 'match'. It looks like there is some unwanted Using transient symbols would be always an option, but I think it should not be necessary here. Actually, we have two bugs: - Your *.l file should

Re: 'match' side-effect interacts with '_htSet'

2009-02-16 Thread Alexander Burger
Hi Tomas, Why is 'use' + 'off' prefered to 'let'? This is mostly a matter of taste. I think I use 'let' much more often than 'use'; it is shorter and more readable. (use (@N @V @Z) (off @N @Z) and (use @V (let (@N NIL @Z NIL) are equivalent, and of equal size (9 cells