Page 2 of 2

Re: Perl's qw as a macro

Posted: Thu Jul 16, 2009 5:53 pm
by findinglisp
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