[Latte] quotation problem

Bart Schaefer schaefer@zanshin.com
Mon, 19 Mar 2001 08:35:15 -0800 (PST)


On Mon, 19 Mar 2001, Daniel Mahler wrote:

> Completely broken quoting and macros are not a good sign.

I think this is all a misunderstanding (and possibly a documentation
problem).  The original question was:

> As to the details of my problem, I get
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> $ latte-text
> \'{\add 3 4}
> ^D 
> 3 4
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> while the manual gives the example
>    
> \'{\add 3 4}
>   => {\add 3 4}

If you run "latte-text --debug=eval" you'll see (ignoring the large amount
of output from loading the latte libraries):

\'{\add 3 4}
> \'{\add 3 4}
< {\add 3 4}
3 4

As opposed to

{\add 3 4}
> {\add 3 4}
 > \add
 < 0x80ace28
< 7
7

In short, \' does not mean "quote in the final output," it means "quote in
the context of further expression evaluations."  The rules for determining
what is actually printed to stdout don't change; in particular, \' and the
like do not "quote" { or } in the way that \{ and \} do.