[NTG-pdftex] \pdfretval vs. expandable \pdfstrcmp
The Thanh Han
hanthethanh at myrealbox.com
Thu Jun 16 13:50:46 CEST 2005
the reason is the same like in case of \pdfescapestr: I
don't know tex the program well enough to make them
expandable, so just made a quick hack to get it work. Anyone
willing to improve them is welcome very much.
Regards,
Thanh
On Wed, Jun 15, 2005 at 08:41:48PM +0200, Heiko Oberdiek wrote:
> Hello,
>
> is there a reason why \pdfstrcmp is not expandable?
> An expandable variant could be used in expandable contexts:
> \ifcase\numexpr\pdfstrcmp{StringA}{StringB}+1\relax
> ...\or ...\or ...\fi
> Inserting into a sorted linear list could be done in O(n):
> \edef\mylist{\addtolist\mylist{foo}}%
> Now it is O(n^2) :-(
>
> Yours sincerely
> Heiko <oberdiek at uni-freiburg.de>
> --
> _______________________________________________
> ntg-pdftex mailing list
> ntg-pdftex at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-pdftex
>
More information about the ntg-pdftex
mailing list