Hi Mohammad > I understood, the encourage is NOT to use global variable and seems > performance is here not a big issue!
There is minimal processing at the point where a macro is defined; we just save the text of the macro. It's only when the macro is used that its content is parsed and rendered. Best wishes Jeremy. > > --Mohammad > >> On Saturday, April 6, 2019 at 12:31:16 PM UTC+4:30, Jeremy Ruston wrote: >> Hi Tony >> >> > Not avoiding duplicate names is the problem from which importvariables is >> > a work around. >> >> The purpose of importvariables is to allow macros to be local to a >> particular tiddler, giving much more flexibility in their reuse. Variables >> in TW are much like variables in an ordinary programming language in that we >> can reuse the same variable names in separate functions/tiddlers without >> them clashing. >> >> Best wishes >> >> Jeremy >> >> > >> > Tony >> > >> > -- >> > 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/a0563edb-cc4c-44c2-a6b4-b5d060deb319%40googlegroups.com. >> > >> > For more options, visit https://groups.google.com/d/optout. > > -- > 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/42cbc1dd-0cf4-4515-bda2-69dbf7451e43%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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/DAEBF80A-0661-48C8-90DA-6086F6D0E4C7%40gmail.com. For more options, visit https://groups.google.com/d/optout.

