[tw5] Re: Variables, Constants and States in Tiddlywiki

2019-07-19 Thread TonyM
Mohammad, Actualy in some ways you have this around the wrong way. Each time we define a variable with the same name a new place in memory stores the value, we are reusing the name not the memory. The best explanation to me is the place in the widget tree. Else where I have being asking for th

[tw5] Re: Variables, Constants and States in Tiddlywiki

2019-07-19 Thread Mohammad
Hi BJ This shows scope of variable! Many thanks I added it to TW-Scripts. By the way is there any way to have static variables means by substituion does not refere to the same memory room. --Mohammad On Friday, July 19, 2019 at 7:38:16 PM UTC+4:30, BJ wrote: > > In wikitext: > the only variabl

[tw5] Re: Variables, Constants and States in Tiddlywiki

2019-07-19 Thread BJ
In wikitext: the only variables are tiddlers and they have global scope. 'variables' are in fact scoped quasi-constants, the scope being defined by the <$vars x='val' y={{tid}}> ... note that x here has value of 'val' <$vars x='newval'> note that we have two x's stacked on top of each other -