Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> also, your idea of how $ and $$ is wrong

No, he's spot-on about that. If you are using a function from within a Makefile to generate Make code which then gets $(eval)ed, then then inner function must output $${variable} so that the outer function sees ${variable} and does not immediately resolve it.

It's hairy. Hairier than macros in C. But like any other specialization, it can potentially save an immense amount of time for the rest of the tam.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: