From: Stefan Schmiedl Date: 2004-10-22T19:49:18+09:00 Subject: Re: CamelCase issues On Fri, 22 Oct 2004 18:13:24 +0900, Michael Neumann wrote: >> >> Who does all of this drawing? It looks like some unknown power is doing >> (and knowing) way too much. > > The component! For example the button component has to draw itself onto > the screen, for which it needs a canvas. Aha. I actually did not get this. Not only am I losing hair, I'm also getting stupid. What a nice way to start into the weekend :-/ > > Hm, but somewhere you have to implement how the component looks like, no? > The above is equivalent to: > > cgi.table { > cgi.tr { > cgi.td { ... } + > cgi.td { ... } > } > } > Well, I'm not happy with the way the cgi stuff is handled, either. But maybe that's because my brain is in Forth mode currently. > But in a more imperatively fashion, similar as for drawing a GUI on the > canvas, where you don't do this ('+'): > > canvas.box(...) { > canvas.line(1, 1, 10, 10) + > canvas.line(...) + > ... > } Not when you're drawing stuff. But if you're doing widget layout with a layout manager, you are at least doing this in spirit, if not in fact. But what's more important now, is to go get Alexander from the kindergarten ... it's his 5th birthday, you know. s.