Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!mirror!ssi3b1!ssibbs!jac From: jac@ssibbs.UUCP (James Crotinger) Newsgroups: comp.sys.amiga Subject: Re: C++ and CLTD. Summary: Classier Intuition Message-ID: <78@ssibbs.UUCP> Date: 1 Feb 89 00:21:20 GMT References: <551@jc3b21.UUCP> <5828@cbmvax.UUCP> <43927@linus.UUCP> Organization: Sangho's Public Access Unix, Cambridge, MA Lines: 33 In article <43927@linus.UUCP>, sdl@linus.UUCP (Steven D. Litvintchouk) writes: > > By the way, is anyone out there working on defining an object-oriented > C++ interface to Intuition, AmigaDOS, the ROM Kernel, etc.? That is, > a C++ class/inheritance hierarchy that defines interfaces to such > Amiga "objects" as windows, tasks, etc.? > The package comes with a full set of include files that have been massaged somewhat to take advantage of C++'s abilities. Many things like the Window and Screen structures have been redefined as classes. However the classes only hide a couple of variables. This was done so that the system still works basically like C programming does. It would definitely be more in the C++ vein to hide all the data in these structures and provide accessor functions to access those which a program should be able to modify. Also, not only is their the issue of compatibility with existing C practices, but cfront takes a bunch of memory to compile large complicated classes, and to make that the default would have (according to Tim Holloway) upped the minimum memory requirement (which is already 1.5 Meg). There are a few example classes in the cpp_include/cplus directory which are derived from more basic classes. One example is a console window which you can write to and read from with the io stream functions, << and >>. Neat, but I wish there was more. > Steven Litvintchouk Jim -- Jim Crotinger crotinger%mit.mfenet@nmfecc.arpa