Forum unknown
· Modula-2
#FastFileIO
5 messages in this thread
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
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 –
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
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
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 –