Mark!
Thank you for your quick reply!
The case is how can I have myMac available globally (can be invoked from 
any tiddlers) but smac1 and smac2 remain private!

/Mohammad

On Sunday, July 1, 2018 at 6:14:20 PM UTC+4:30, Mark S. wrote:
>
> Sure. Just put the first two macros in a tiddler labeled with 
> $:/tags/Macro. Then don't put a macro in your 2nd tiddler that has the 3rd 
> macro. e.g:
>
>
> title: My Invocation tiddler
> tags: RandomTag
>
> \define myMac(x,y)
> <<smac1 $x$>> <<smac2 $y$>>
> \end
>
> <<myMac "TW" "lovely">>
>
>
>
> -- Mark
>
>
> On Sunday, July 1, 2018 at 5:56:07 AM UTC-7, Mohammad wrote:
>>
>> Hi
>>  I have a tiddler tagged with $:/tags/Macro in that I have three macros, 
>> tow of them work as sub-macro (like sub-function or private methods in 
>> other programming language) for the main macro.
>>
>>
>>    - Example
>>
>> \define smac1(a)  This is $a$
>> \define smac2(b)  and I it is really $b$.
>>
>> \define myMac(x,y)
>> <<smac1 $x$>> <<smac2 $y$>>
>> \end
>>
>>
>>
>> I use it like 
>>
>> <<myMac "TW" "lovely">>
>>
>>
>>
>> The question is I want to have only myMac available globally and not 
>> smac1, and smac2. Is it possible with TW?
>>
>> /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 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/9f970858-5ba1-4fe5-ba20-dc4257873619%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to