jmaley@pc.ecn.purdue.edu.UUCP (James Maley) (09/24/86)
Part Three of Goldberg and Robson book on Smalltalk-80 ("the Blue Book") describes an example simulation modeling structure. Their implementation has some errors (ie: pg 460, aTime & timeInteger should match). Has anyone actually fixed all these "typos" and gotten the simulation examples to work? As a new user of Smalltalk-80, I would appreciate your sharing any experiences that you may have had with this example. Please reply directly to me. If anyone else is interested in this problem and its resolution, I can summarize and post corrections to this part of the book. If these corrections already exist, I would appreciate your assistance in pointing me to them. Thanks! Jim Maley
sdl@linus.UUCP (Steven D. Litvintchouk) (09/28/86)
Yes, I have gotten the simulation stuff in the blue book to work. There are actually several typos, all of which should be more or less obvious when you try to compile the code. More serious is the fact that I had to play around with process priorities to get the simulations to run. I don't have the code in front of me, but as I recall, in the scheduler where it does "Processor yield", the simulation processes never seem to run. I had to change the code to fork them with the next higher priority, in order to get them to run. I have never been able to decide whether that is a bug in the blue book, or a bug in my Smalltalk implementation (I have Softsmarts Smalltalk on my IBM PC/AT). I can mail you the code of that too. I would be curious whether your implementation of Smalltalk displays the same behavior. Steven Litvintchouk MITRE Corporation Burlington Road Bedford, MA 01730 Fone: (617)271-7753 ARPA: sdl@mitre-bedford UUCP: ...{cbosgd,decvax,genrad,ll-xn,philabs,security,utzoo}!linus!sdl