CompuServe Thread

Forum unknown · Modula-2

#FastFileIO

5 messages in this thread
#115324From: Brendan PrattMar 24, 1988 5:00 AM
Hi All,just converting Fastio.arc from tdi to Benchmark,and have come across a small problem or 2! tmp := open(name,Mode) (* error over the comma *) INC(IndexPtr); (* everyone of those show an error,i think error 143 (?) *) I'm not quite right up with M2 yet,so i need as much help as i can get. Thanks! Brendan Pratt
#115389From: Steve FaiwiszewskiMar 24, 1988 5:08 PM
Can you specify the text of the error? I don't think anyone memorized all the error msg numbers yet :), and I don't have the manual near me now. Look at the Benchmark declaration of open. It may want the 'name' to be passed as address (i.e. ADR(name) ). The second problem, I believe, is because Benchmark sticks to the Modula standard while TDI doesn't. Modula does NOT let you increment pointers. you could do: IndexPtr := ADDRESS(LONGCARD(IndexPtr) + 1) – Steve –
#115408From: Brendan PrattMar 24, 1988 7:17 PM
Thanks Steve,I will learn sooner or later(sooner preferably :-)!). I'll give those a try out.I think if they don't work,i'll have a better chance now! Thanks again Brendan Pratt
#115408From: Brendan PrattMar 24, 1988 7:17 PM
Thanks Steve,I will learn sooner or later(sooner preferably :-)!). I'll give those a try out.I think if they don't work,i'll have a better chance now! Thanks again Brendan Pratt
#115389From: Steve FaiwiszewskiMar 24, 1988 5:08 PM
Can you specify the text of the error? I don't think anyone memorized all the error msg numbers yet :), and I don't have the manual near me now. Look at the Benchmark declaration of open. It may want the 'name' to be passed as address (i.e. ADR(name) ). The second problem, I believe, is because Benchmark sticks to the Modula standard while TDI doesn't. Modula does NOT let you increment pointers. you could do: IndexPtr := ADDRESS(LONGCARD(IndexPtr) + 1) – Steve –