On Friday, May 29, 2020 at 3:55:52 AM UTC+2, Roel Vanhout wrote:

But the important realization is that macros/variables are not all stored 
> in place but are rather context-dependent, i.e. are a collection of 
> variables defined at any of the parents of the current context. Which is 
> probably not news to any of you :) but it's what tripped me up.
>

That's true. Macros are internally stored as variables. _And_ they have a 
scope. This makes it possible to "reuse" or overwrite them. Eg: 
currentTiddler always points to the tiddler, which contains the "wiki 
text", if it was defined by a standard transclusion. Using the <$tiddler .. 
> widget also defines currentTiddler. 

<$set ... and <$var ... widgets work in the same way. The variables, that 
they define or only valid inside the widget body. 



-mario

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/06f77ac3-9b8e-45c0-8789-d8d1f087c69d%40googlegroups.com.

Reply via email to