From: Eric B. R. <eb...@tc...> - 2003-04-21 14:46:17
|
On Friday, April 18, 2003, at 10:09 PM, Eric B. Ridge wrote: > On Friday, April 18, 2003, at 09:19 PM, Brian Goetz wrote: > >> Do the same with your macro. There must be some way #visitChildren >> can expand to something that doesn't involve calling > >> #visitChildren.... > > Did I miss something obvious or wouldn't that case be when $n has no > children? I did miss something "obvious" (even tho I knew it already), and it's that #macro's are expanded into the template at build time, not run time. So... this makes me think that making a #call directive for Macro is NOT a good idea because #call doesn't accurately represent how macros work and would likely lead to lots and lots of confusion along the same lines as this #visitChidren example. eric |