Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!wuarchive!udel!rochester!uhura.cc.rochester.edu!ub!dsinc!unix.cis.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: FPC forth????????? Message-ID: <2726.UUL1.3#5129@willett.pgh.pa.us> Date: 8 May 91 02:51:59 GMT Organization: (n.) to be organized. But that's not important right now. Lines: 63 Date: 05-01-91 (16:55) Number: 2082 of 2088 To: ALL Refer#: NONE From: DAVID ROGERS Read: (N/A) Subj: F-PC PROBLEMS Status: PUBLIC MESSAGE Conf: FORTH (58) Read Type: GENERAL (+) HELP!!!! I am new to Forth although I am proficient in other languages. I have just gotten hold of f-pc and have been trying it out. I seem to have run into a problem. I am trying to run the following and it does not seem to work as expected. Can anyone explain what I am doing wrong? My setup is plain vanilla just as it was extracted from the .zip files. \ The following produces some garbage at run time - see test run below \ create buf 80 allot variable bufcount : readline buf 20 EXPECT span @ bufcount ! ; \ The following works as expected \ \ \ \ : readline2 buf 20 (EXPECT) span @ bufcount ! ; Here's what happens: load Loading.. ok readline This is a test!!! ; R> <- What? ok ok readline2 This is a test!!! ok Why does this happen? Regards, David A. Rogers --- ~ SLMR 1.05 ~ Whip me, beat me, make me code in COBOL!! NET/Mail : Omega BBS, Seattle, WA : (206)933-0869 HST : MetroLink PCRelay:DCINFO -> #16 MetroLink (tm) International Network 4.10 DC Info Exchange MetroLink International Hub <<<>>> ----- This message came from GEnie via willett. You *cannot* reply to the author using e-mail. Please post a follow-up article, or use any instructions the author may have included (USMail addresses, telephone #, etc.). Report problems to: dwp@willett.pgh.pa.us _or_ uunet!willett!dwp