Re: Issue 25 Proposal

Jacek Kopecky wrote:

> Please, can you show me the specific problems created by
> separation of Headers and Body? [...]

I think it ultimately boils down to choosing between option A or B below.

A
=
    Envelope process() {
        Headers hs = headers();
        Body b = body();
        Trailers ts = trailers();

        while (! hs.atEnd()) {
            Header h = hs.next();
            h.process(hs, b, ts);
        }
        b.process(hs, b, ts);
        while (! ts.atEnd()) {
            Trailer t = ts.next();
            t.process(hs, b, ts);
        }
    }

B
=
    Envelope process() {
        Blocks bs = blocks();

        while (! bs.atEnd()) {
            Block b = bs.next();
            b.process(bs);
        }
    }

Jean-Jacques.

Received on Tuesday, 12 June 2001 10:51:11 UTC