* \def vs \define
@ 2011-07-21 13:15 Steffen Wolfrum
2011-07-21 13:26 ` Aditya Mahajan
2011-07-21 13:26 ` Hans Hagen
0 siblings, 2 replies; 3+ messages in thread
From: Steffen Wolfrum @ 2011-07-21 13:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
in this example the question mark nicely becomes part of the command name:
\def\OverFull?{\overfullrule30\points}
\OverFull?
here it does not work at all:
\define\OverFull?{\overfullrule30\points}
\OverFull?
(... but gives "??" instead)
As "\define" seems to be more canonical:
Does this result mean it is not recommended to use question marks in command names?
Steffen
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \def vs \define
2011-07-21 13:15 \def vs \define Steffen Wolfrum
@ 2011-07-21 13:26 ` Aditya Mahajan
2011-07-21 13:26 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2011-07-21 13:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 21 Jul 2011, Steffen Wolfrum wrote:
> Hi,
>
> in this example the question mark nicely becomes part of the command name:
>
> \def\OverFull?{\overfullrule30\points}
> \OverFull?
>
>
> here it does not work at all:
>
> \define\OverFull?{\overfullrule30\points}
> \OverFull?
>
> (... but gives "??" instead)
>
>
> As "\define" seems to be more canonical:
> Does this result mean it is not recommended to use question marks in command names?
\setvalue{OverFull?}{...}
Perhaps we can have an equivalent \definevalue that also checks for
previous definitions.
Aditya
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \def vs \define
2011-07-21 13:15 \def vs \define Steffen Wolfrum
2011-07-21 13:26 ` Aditya Mahajan
@ 2011-07-21 13:26 ` Hans Hagen
1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2011-07-21 13:26 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum
On 21-7-2011 3:15, Steffen Wolfrum wrote:
> Hi,
>
> in this example the question mark nicely becomes part of the command name:
>
> \def\OverFull?{\overfullrule30\points}
> \OverFull?
here the ? is not part of the command but a delimiter
\OverFull ?
\def\OverFull#1?{\overfullrule30\points}
\OverFull crap ?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-21 13:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-21 13:15 \def vs \define Steffen Wolfrum
2011-07-21 13:26 ` Aditya Mahajan
2011-07-21 13:26 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).