Well,
it seems that no need in 2 level of macros and variable set.
Instead <$macrocall> should be used
\define the_link(x)
[[Comment for '$x$']]
\end
<$macrocall $name="the_link" x={{!!title}}/>
понедельник, 2 декабря 2013 г., 19:30:54 UTC+3 пользователь Stephan Hradek
написал:
>
> So I found one way which seems to work - but I don't see the logic in it.
>
> \define the_link()
> [[Comment for '$(x)$']]
> \end
>
> \define okay_link()
> <$set name="x" value={{!!title}}>
> <<the_link>>
> </$set>
> \end
>
> <<okay_link>>
>
>
> A similar way, but one level less does not work:
>
> \define nok_link()
> <$set name="x" value={{!!title}}>
> [[Comment for '$(x)$']]
> </$set>
> \end
>
> <<nok_link>>
>
>
> To be honest: I find this quite confusing (and frustrating).
>
> What's most confusing: We have several ways of accessing similar stuff.
>
> At least we have:
>
> $parameter$ - for macro parameters
> $(variable)$ - for variables
>
> It seems to me as if these variables are a kind of a global for macros but
> do not work outside of macros.
>
> <$set name="variable" value="val">
> here we can't use $(variable)$
> while <<macro>> will be able to use it
> </$set>
>
>
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/7ee4e397-80f1-4ddb-a937-4e78fc7129ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.