[metapost] variable parameter list

Dan Luecking luecking at uark.edu
Wed Feb 22 18:46:21 CET 2006


At 03:47 AM 2/22/2006, you wrote:

>Jens-Uwe Morawski schrieb:
> > Am Dienstag, den 21.02.2006, 12:22 +0100 schrieb Stephan Hennig:
> >> I had a basic keyval.mp package in mind. :) Is there a way to get a
> >> variable's name as string? This could be useful for parameter
> >> checking in processKeyvals
> >
> > i don't see a way. if you find one please let me know,
> > i'm interested in that, too

The MF/MP primitive str returns a string that represents the name
of a suffix (as it would be displayed on diagnostic output). Since
only tags can be suffixes, I assume it would only work on tags, not
sparks (so only variables or vardef'ed fnctions). I've used it
occasionally in error messages for macros with suffix arguments.


Dan


Daniel H. Luecking
Department of Mathematical Sciences
University of Arkansas
"Be kind. Every person you meet is fighting a hard battle." - Anon.



More information about the metapost mailing list