in reply to Re^5: How to simulate a preprocessor macro without one?
in thread How to simulate a preprocessor macro without one?
Your example printed the return value of the test() but I didn't see any lexical changes to happen.
The function I am now looking for, should be able to access the callers lexicals same way as qq operator does, to be able to create other new (better) ways to interpolate strings. Or, as in my original case, I would use callers local variables with the template string from the same caller. You should think the qq as a small template processor function to see the problem in my viewpoint.
If my goal is possible achieve it also means that you can write new functions which gives allmost same effect as macro proprocessors functions does in C.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: How to simulate a preprocessor macro without one?
by LanX (Saint) on Feb 09, 2010 at 22:06 UTC | |
by AriSoft (Sexton) on Feb 13, 2010 at 15:04 UTC |