Perl's qw as a macro

Discussion of Common Lisp

Re: Perl's qw as a macro

Postby findinglisp » Thu Jul 16, 2009 5:53 pm

The way to do this would be with a reader macro. As others have pointed out, you need to get access to the raw characters in the input stream before the standard reader fiddles with them. Thus, a standard macro won't be enough since it's always invoked after the reader has done its job. Fortunately, Common Lisp comes to the rescue with the right hooks. :D
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Previous

Return to Common Lisp

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests