LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruno Le Floch <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Fri, 3 Feb 2012 15:01:01 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
> : All LaTeX3 functions are either fully expandable or engine-protected. In
> : this case, we are talking about protected functions: these are not
> : expandable. (In the documentation, expandable functions are marked with
> : a star.)

Joseph is right. Regular expression matching is already tough enough
to not try to do it expandably (besides, that would become
unreasonably slow, and would break in corner cases). What you seem to
be trying can be done as follows instead:

    \regex_match:nnTF {o} {o}
      { \xdef\foo{0,0} }
      { \xdef\foo{1,1} }

-- 
Regards,
Bruno

ATOM RSS1 RSS2