Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!rover.ri.cmu.edu!mkb From: mkb@rover.ri.cmu.edu (Mike Blackwell) Newsgroups: comp.sys.mac.programmer Subject: C++/MacApp questions Message-ID: <10594@pt.cs.cmu.edu> Date: 27 Sep 90 20:49:59 GMT Reply-To: mkb@rover.ri.cmu.edu (Mike Blackwell) Organization: Carnegie-Mellon University, CS/RI Lines: 27 I'm a vetran Mac C programmer, but I'm just getting in to using MacApp and C++. Lots of fun, as long as I have plenty of reading material during compiles... Which leads me to some questions: Is there ANY way to speed things along besides turning on the RAM disk cache? It looks like most of the time is spent in CFront processing all those .h files. Will the dump/load mechanism work here, and if so, can you give me a quick tutorial? Why oh why can't I compile in the background? I have gobs of real memory, and I'd even spring for another disk for swap space. Sigh. Will Sys7 solve this? A basic C++ question: I'd like to define some class specific constants inside the class - it makes sense, and develop_2 C++ style guide tells me it's a good idea. But how? The obvious way (to me) doesn't work: class TMyView : public TView { public: static const short kMyConst = 42; ... blah blah ... } CFront complains about the assignment. Where should the assignment go? The constructor? Mike Blackwell mkb@rover.ri.cmu.edu