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.
In reply to Re^6: How to simulate a preprocessor macro without one?
by AriSoft
in thread How to simulate a preprocessor macro without one?
by AriSoft
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |