Re: Line Generator
- Posted by Jeffrey Fielding <JJProg at CYBERBURY.NET> Sep 07, 2000
- 514 views
On Thu, 07 Sep 2000, you wrote: > > Thomas, > > desc should be an object, since gets(0) returns a sequence of 2 atoms. gets reads a line from a file. You probably want get, which returns a sequence {success, value}. success would be GET_SUCCESS on success, and the value is whatever value it read. Also note that since you're not modifying desc in the loop, you will get an infinate loop if desc is greater than 0. Jeff > ----- Oorspronkelijk bericht ----- > Van: Paul Kerslake > Aan: EUPHORIA at LISTSERV.MUOHIO.EDU > Verzonden: vrijdag 8 september 2000 1:09 > Onderwerp: Line Generator > > > Can anyone tell me why I'm getting an error from this: > > include get.e > > atom desc > > desc=gets(0) > ? desc > desc=desc[1] > ? desc > while desc>0 do > puts(1,"!") > end while > > > I'm making a program that generates lines according to what they type in, > but I need the enter ereased but not all the other numbers. > > -Thanks. > -Thomas > > > > > ---------------------------------------- Content-Description: ----------------------------------------