Hi,

Still exploring macros and default values.
I've got a problem in a macro calling a second macro. The first macro has 
some arguments with default values.

Here's an MTC. 
Create a tiddler (say TestMacros) with a field "foo" with value "bar".
Put this code in the tiddler :

\define testmacro1(alpha:{{!!title}} beta gamma:{{!!foo}})
<<testmacro2 $alpha$ $beta$ $gamma$>>
\end

\define testmacro2(alpha beta gamma)
alpha = $alpha$
<br>
beta = $beta$
<br>
gamma = $gamma$
\end

<<testmacro1>>

The result is :

alpha = TestMacros
beta = bar 
gamma = 

Seems to me that beta should'nt hold any value and gamma should hold "bar" 
as its value.
Could someone explain this behaviour ?

Thanks

FrD

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a21ed836-2926-4468-bc9b-aae7de4f5a80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to