<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Joseph, you're right, I've spoken too hastily, the problem comes from
luaotfload.sty (which loads ifluatex), not from ifluatex. However, the
As mentionned by Chris and Robin, anybody is free to do whatever s/he
wants, but there seems to me there isn't any kind of invitation
anywhere to follow some rules. Actually my question was just the tip of
a personal iceberg about the desirability of a format-independent API
(and thus my question perhaps didn't make much sense in itself); this
answers Philipp's point that "everyone should use packages like
etoolbox," a good suggestion... except we have no format-independent
etoolbox (fortunately we still have \newif and friends, which probably
satisfy everyone, barring \outer-worshippers).<br>
Robin Fairbairns a écrit :
<blockquote cite="mid:firstname.lastname@example.org" type="cite">
<pre wrap="">Philipp Stephani <a class="moz-txt-link-rfc2396E" href="mailto:email@example.com"><firstname.lastname@example.org></a> wrote:
<pre wrap="">Am 14.04.2010 um 13:33 schrieb Paul Isambert:
<pre wrap="">Shouldn't we try to all use the same construction to test for the existence of commands?
<pre wrap="">You should normally treat \relax as undefined, but nevertheless take
care not to define control sequences with \csname. Everyone should use
packages like etoolbox for these tests because they are not trivial.
as chris rowley said earlier, what's good and what's obeyed are
necessarily different things.
<pre wrap="">If we took e-TeX for granted, then \ifcsname would solve the problem.
<pre wrap="">Even without e-TeX, you can check for the existence of control
sequences without visible side effects:
\expandafter\ifx\csname ...\endcsname\relax ...
yup. trips off the toungue like a chunk of finnegan's wake.
(i wrote that one down, long ago, with a thought of sticking it in the
faq. i've still not done that, due to my lack of conviction.)