On Thu, 5 Feb 2009, Wolfgang Schuster wrote: > A faster version of your macro is: > > \def\MyFunction > {\dosingleempty\doMyFunction} > > \def\doMyFunction[#1]% > > {\removeunwantedspaces\executeifdefined{myfunction:#1}{\getvalue{myfunction:default}}} > > \setvalue{myfunction:1}{\medspace dog } > \setvalue{myfunction:2}{\medspace cat } > \setvalue{myfunction:default}{\ldots}
Hello, I'm working now a lot with \setvariable and \getvariable. What are the advantages/disadvantages of set/get-value over set/get-variable? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________