Boost logo

Boost :

From: David Bergman (davidb_at_[hidden])
Date: 2004-03-03 23:11:32


Shannon wrote:

> > I understand you're not pushing that approach. It couldn't
> quite work
> > like that as you're trying to structure a tree rather than
> a sequence.
>
> This is beside the point. Trees are isomorphic to lists that
> contain lists. For example:
>
> winout << title("Example window")
> << divider(2) << up << ( panel << vertical
> << label("Hello, world!")
> << textentry("Name: ") )
> << down << ( panel << horizontal
> << button("OK")
> << button("Cancel") );

Ok, but why have the stream output syntax at all? And, why have line-by-line
layout. I would instead look at existing layout managers, such as in Java
(both AWT and Swing) or why not the good old platform-independent C++
library Galaxy?

/David


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk