LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Joseph Wright <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Thu, 6 Jan 2011 20:52:46 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
On 05/01/2011 23:22, Frank Mittelbach wrote:
>   >  I had a look back through the current code, to think about things more
>   >  generally. One thing that stuck me is that \box_new:N gives a void box,
>   >  \box_use_clear:N gives a void box but \box_clear:N gives an empty
>   >  (h)box.
>
> you sure? that shouldn't be the case. It is supposed to be set eq to
> \c_empty_box which in turn should be a void box in fact the plain TeX \voidb@x
> right now

You are right: I was misled by 'empty' in the name. So things are 
consistent, but named awkwardly. Perhaps this should be '\c_unset_box', 
with \box_unset:N and \box_if_unset:N(TF) following naturally. (I still 
don't like \box_use_unset:N, as the concept of use-and-unset jars 
compared to the other variable types. However, the name would at least 
be consistent with the other functions.)

What is clear is that 'empty' is a pretty bad choice of name here :-)
--
Joseph Wright

ATOM RSS1 RSS2