Path: utzoo!attcan!uunet!samsung!usc!elroy.jpl.nasa.gov!decwrl!shelby!neon!Kermit.Stanford.EDU!philip From: philip@Kermit.Stanford.EDU (Philip Machanick) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK Pascal enhancements I'd like to see... Keywords: (as long as we're on the subject) Message-ID: <1990Mar24.013103.19064@Neon.Stanford.EDU> Date: 24 Mar 90 01:31:03 GMT References: <1990Mar23.181237.27430@spectre.ccsf.caltech.edu> <9960@wpi.wpi.edu> <13270@burdvax.PRC.Unisys.COM> Sender: news@Neon.Stanford.EDU (USENET News System) Reply-To: philip@pescadero.stanford.edu Organization: Computer Science Department, Stanford University Lines: 35 In article <1990Mar23.181237.27430@spectre.ccsf.caltech.edu>, palmer@tybalt.caltech.edu (David Palmer) writes: > > What I'd like to see in the Think C editor is the ability to 'hide' > nested code. This would be done in a manner similar to an outline processor. > When you open up a file, each procedure is represented > by just its definition. Double click on that, and you get something like > > void foo(int bar, double *prime) > { > int i; > char *text; > for (i = 0 ; text[i] != '\0' ; i++) { > } > } > > Clicking on the 'for' reveals its contents, etc. > > Of course, I only want it if it can be fully configured for different > indenting styles etc., and if it can be turned off. > > I have heard that the editor which is used for Occam on transputers does this, > but I have never seen this. > It's called the folding editor - a great idea. The whole system is built up hierarchically like this, including files and directories. Unfortunately, the detailed implementation isn't so hot, and it's a real pain to use. The system is called TDS, for Transputer Development System, which I pronounce as te-de-us. I think a better improvement in the Mac context would be paned windows, as in MS Word, to allow you to see a function definition as well as edit the place it's being used. Philip Machanick philip@pescadero.stanford.edu