Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!postnews2.euro.net!news.wanadoo.nl!not-for-mail From: mhx@iae.nl (Marcel Hendrix) Subject: Re: OOP Newsgroups: comp.lang.forth Message-ID: <80811995948435@frunobulax.edu> Date: Sat, 8 Sep 2012 16:54:55 +0200 References: <504b37d4$0$294$14726298@news.sunsite.dk> X-Newsreader: iForth 2.0 console (October 21, 2006) Lines: 29 Organization: Wanadoo NNTP-Posting-Date: 08 Sep 2012 14:54:25 GMT NNTP-Posting-Host: s529d937f.adsl.wanadoo.nl X-Trace: 1347116065 dr2.euro.net 221 82.157.147.127:50454 X-Complaints-To: abuse@wanadoo.nl Xref: csiph.com comp.lang.forth:15530 Doug Hoffman writes Re: OOP > On 9/8/12 7:38 AM, Anton Ertl wrote: >> But yes, for most stuff that I did, objects did not look useful, so I >> used OOP rarely, and if I did, it's something very simple. > Years ago I wrote a spreadsheet-like data input class. It had rows and > columns and horizontal and vertical scrolling. The data (text) was > edited directly "in the spreadsheet cell" exactly as can be done with a > good spreadsheet like Excel. The object code (Mops) was non-trivial and > included 2-dimensional text array objects, scrollbar objects, font > objects, blinking caret objects (which of course were subclasses of line > objects), string objects, rectangle objects, and many more object types. > As many of these "editList" objects as desired could of course be > placed in a single window, each list could have its own cell width, > font, real-time data input filtering algorithm, and so on. I would not > want to try to reproduce that code without OOP. 'Embarassingly object-oriented', but nevertheless, it would make a very good example. How do yo manage the complex hierarchy of objects? I mean, say you want to add graphical objects to a cell, and such objects can be plots where you need the user to enter and format texts to be used as labels along the axes? -marcel