In https://tiddlywiki.com/ <https://tiddlywiki.com/prerelease/>

   - create a new tiddler
   - and copy paste the below script
   - save and see the output


*Code*
\define One(p1, p2)
;Inside One
:This is p1 in One: <$text text=<<__p1__>> />
:This is p2 in One: <$text text=<<__p2__>> />

!!Call Two without passing p1, p2

<<Two p3:300>>
\end

\define Two(p3)
;Inside Two
:This is p1 in Two: <$text text=<<__p1__>> />
:This is p2 in Two: <$text text=<<__p2__>> />
\end

<<One p1:100 p2:200>>


Output


Inside OneThis is p1 in One: 100This is p2 in One: 200Call Two without 
passing p1, p2Inside TwoThis is p1 in Two: 100This is p2 in Two: 200


That means scope of macro parameters span to all macro called from the main 
macro!

Is this correct? Is it practice to acces macro parameters in this way from 
other calling macros?

--Mohammad

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd722b10-dd34-477c-ab28-a7af336ac9f7%40googlegroups.com.

Reply via email to