Path: utzoo!mnetor!uunet!husc6!rutgers!mtunx!mtuxo!mtgzz!drutx!clive From: clive@drutx.ATT.COM (Clive Steward) Newsgroups: comp.sys.mac.programmer Subject: Re: Goin' Crazy on a Mac, or, How I Love MPW "GlobalData" Message-ID: <7327@drutx.ATT.COM> Date: 5 May 88 22:55:12 GMT References: <8816@eleazar.Dartmouth.EDU> Organization: resident visitor Lines: 16 From article <8816@eleazar.Dartmouth.EDU>, by earleh@eleazar.Dartmouth.EDU (Earle R. Horton): > Personally, I think that if you are programming in C or any other > language which allows for dynamic memory allocation and data > structures, then you really do not need even 32k of global data. Try > using malloc()... Nice idea, Earle, but there are some number of difficult situations for this. In particular, the very useful program generators yacc and lex generate data arrays, which are used for finite state machines. If the programs you generate with them are large, so are these arrays. I have a particular program in mind which has about 150k or so of them. There are solutions any programmer can think of, but none of them pretty. Clive