Re: Match and tilde read-macro

2010-01-26 Thread Alexander Burger
Hi Henrik, > (dm split> (L Subject) > ... > (while (match '(@A ~L @B) Subject) > ... > > It isn't working because it seems that ~L returns a NIL, how come and how As the name says, '~' is a read-macro. It is expanded at read time (when the function is read from the source file), whil

Match and tilde read-macro

2010-01-26 Thread Henrik Sarvell
Hi! When I try this everything happens as I hoped/expected it would: (setq Tst '(4 4)) (println '(@A ~Tst @B)) (println (match '(@A ~Tst @B) '(1 2 3 4 4 5 6))) (println @A) However when I try to use this to create an arbitrary splitter, like this: (dm chopStr> (Str) (if (lst? Str) Str (chop