term and prefix documentation

Started by cormullion, November 13, 2010, 03:22:00 AM

Previous topic - Next topic

cormullion

Hi Lutz! Could you expand the documentation for term and prefix? From the descriptions, I can't really explain to myself what the problem is here:


> (set 's "Fred")
"Fred"
> (term s)

ERR: symbol or context expected in function term : "Fred"
> (prefix s)

ERR: symbol expected in function prefix : s
>


s is a symbol? Perhaps it's not supposed to work if it's not in a context, but I think it should be clear from the docs if that's the case.

Lutz

#1
In term and prefix the argument must evaluate to a symbol.