On Fri, Mar 19, 1999 at 06:10:15PM +0100, Jean-Marc Lasgouttes wrote:
> >From the top of my head we'll need at least two additional variables:
> - a boolean indicating whether the heading is numbered or not
> - a text inset containing the optional caption
One thing that docbook uses are labels inside the the different tags.
Is it possible to have reserve space to this in a sensible way?
>
> Asger> So another question is: How do we organize all the different
> Asger> kinds of information that the different "modes" of paragraphs
> Asger> require? At the moment, we have a giant struct with fields for
> Asger> all of these things, and these are carried around even when the
> Asger> information is not relevant. I'd like us to come up with
> Asger> something better, and in this regard my Value system could do
> Asger> the job... However, let's ignore this for now.
>
> Isn't it possible in C to have several variables at the same location
> of a struct (like pascal does in records)? We could also have a
> pointer to a type-specific data structure, which would be delete when
> the paragraph changes type (not sure it's a good idea, just suggesting).
Your are talking about unions right? ;-)
> Asger> Ok, Lgb, Jean-Marc, Allan, and I all agree that a flat document
> Asger> structure would work. The rest have not objected, so let's
> Asger> consider this a fixed design decision then.
>
> Right.
That's fine.
> JMarc
José