Hi all, I haven't touched TW in quite some time. Yesterday I wanted to get back to a project I started 6 months ago, and was quickly stuck when using macros, realizing that my assumptions on how macro expansion works were wrong.
I would expect macros to be expanded recursively, before any parsing is done on the string. It seems to be mostly the case, but I do not understand the following. If I define & use macros as \define foo() 42 \define bar() <<foo>> <span><<bar>></span> The expansion works as I'm expecting it to, and the output is <span>42</span> However, if I use it as below: \define foo() 42 \define bar() <<foo>> <span class=<<bar>>></span> Then the expansion yields <span class="<<foo>>">test</span> As if all of the sudden macro expansion wasn't recursive anymore. I think I'm misunderstanding something :-) Cheers, Nico -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/875z5l4uwc.fsf%40petton.fr.
signature.asc
Description: PGP signature