Hans Hagen wxs.nl> writes:
>
> Ruini Xue wrote:
> > It's difficult to understand them from the code.
>
> the first one issues a warning when no argument is given
You mean both of them ask the following \command to take two mandatory
arguments? I try this example:
==
\def\test
{\dodoubleargument\dotest} % use \dodoubleempty
\def\dotest[#1][#2]
{\iffirstargument
First arg: #1
\fi
\ifsecondargument
Second arg: #2
\fi}
\test[ok][ok] % 1. this is ok
\test [ok] [] % 2. warning?
\test [wrong] % 3. Error: lack one arg
==
both 1 and 2 can print "First arg" and "Second arg", so I am confused what's
"no argument is given"
-- ruini
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___