# [NTG-context] framewidth parameter

Taco Hoekwater taco at elvenkind.com
Mon Sep 27 17:06:19 CEST 2004


On Mon, 27 Sep 2004 16:07:13 +0200, Eckhart wrote:

> Btw, one thing that sometimes constrains work with context is a lack of
> error/warning messages. It would be very helpful if commands complained
> about unknown parameters, i.e. \framed[framewidth=2mm]{xyz}. Of course I
> can't judge the difficulties in implementing such a feature, but from a
> user's point of view, it would be great.

It would not be hard, but context would definately slow down and it would be
(much?) more taxing on TeX's memory.  I agree it would be very handy sometimes,
but it introduces overhead that we do not want at other times.

In your example, The \getparameters that is called behind the scenes blindly
converts the 'framewidth' parameter to

\def\@@olframewidth{2mm}

At that moment, there is no knowledge that this parameter will, in fact, never be
used  'downstream'.  Adding that knowledge has a definate associated penalty,
(at minimum one 'if' test and some strings per debugged command).

--
groeten,

Taco