groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] name clashings


From: Bernd Warken
Subject: Re: [Groff] name clashings
Date: Tue, 23 Oct 2001 18:06:21 +0200
User-agent: Mutt/1.2.5i

On Mon, Oct 22, 2001 at 10:32:26PM +0200, Werner LEMBERG wrote:
> Interestingly, even TeX doesn't have this.  It is quite easy to
> implement a protected `.de' if necessary:
> 
>   .de safe-de
>   .  if d $1 \{\
>   .    tm safe-de: `$1' already defined
>   .  \}
>   ...
>   ..
> 
> I think that a programmer has to know what he or she does...
> 
You are right, but a problem remains. When a future groff version adds
new commands your document might fail if your local command is used
internally.

Python also allows to overwrite anything, but has namespaces to protect
possible clashings. So how about a namespace facility in groff?

Bernd


reply via email to

[Prev in Thread] Current Thread [Next in Thread]