Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 2 > Basic Questions
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 17 Topic 363 of 376
Post > Topic >>

Basic Questions

by carmaski@[EMAIL PROTECTED] Apr 5, 2008 at 02:04 PM

Hi,

	I am newbie to Modula2 trying to compile some legacy code that I am
told worked with Top Speed Modula 2. Right now I am trying to use the
XDS Compiler. I have two basic questions that I think may not be
compiler specific (or may be not):

1. Does it matter if you break up a Procedure definition on to
separate lines?

i.e. is

PROCEDURE vertab (VAR a,b,c:CARDINAL;VAR rowstart:ListPoint;VAR
inf:File);

And

PROCEDURE vertab(VAR a,b,c:CARDINAL;
                  VAR rowstart:ListPoint;
                  VAR inf:File);

The same?? I know in C and many other languages this does not matter.

I am asking this question because I have the Procedure definition in
the "*.def" file exactly the same as what I have in the "*.mod" file -
and it complains saying "procedure "vertab" does not match previous
definition" I don't know what the error is? I copied and pasted one to
the other just to make sure - still I get nothing.


2. Is there some module or package called "FIO" and how do I find out
what it contains?

	I have a line like

FROM FIO IM****T Create, Open, File, Close, WrStr, WrLn, WrLngCard,

In a "*.def" file but later in that file it tells me that "File" is
not defined.

Actually these errors may be related because this error comes from the
"VAR inf:File" in the procedure definition mentioned above.

Any ideas?

Thanks a lot for the help,
O.O.
 




 17 Posts in Topic:
Basic Questions
carmaski@[EMAIL PROTECTED  2008-04-05 14:04:46 
Re: Basic Questions
Marco van de Voort <ma  2008-04-06 09:22:34 
Re: Basic Questions
JP2R <jp.dezaire@[EMAI  2008-04-06 02:40:23 
Re: Basic Questions
Marco van de Voort <ma  2008-04-06 10:46:13 
Re: Basic Questions
"O. Olson" <  2008-04-06 08:53:32 
Re: Basic Questions
Martin Whitaker <spamt  2008-04-06 18:52:17 
Re: Basic Questions
"O. Olson" <  2008-04-06 08:59:53 
Re: Basic Questions
"O. Olson" <  2008-04-06 09:01:34 
Re: Basic Questions
JP2R <jp.dezaire@[EMAI  2008-04-06 10:28:42 
Re: Basic Questions
"O. Olson" <  2008-04-06 22:06:23 
Re: Basic Questions
"Jürgen Lerch"   2008-04-07 08:01:16 
Re: Basic Questions
JP2R <jp.dezaire@[EMAI  2008-04-07 01:32:24 
Re: Basic Questions
Marco van de Voort <ma  2008-04-07 10:37:52 
Re: Basic Questions
JP2R <jp.dezaire@[EMAI  2008-04-07 04:13:19 
Re: Basic Questions
Marco van de Voort <ma  2008-04-07 19:17:02 
Re: Basic Questions
JP2R <jp.dezaire@[EMAI  2008-04-07 12:55:08 
Re: Basic Questions
"O. Olson" <  2008-04-08 16:14:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:05:14 CDT 2008.