Talk About Network



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 > Pascal Ansi -iso > Loop variables ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 162 of 211
Post > Topic >>

Loop variables in ISO 7185

by 2metre <news55@[EMAIL PROTECTED] > Jun 28, 2005 at 11:33 AM

Can loop variables be VAR parameters?

eg
Does the following code conform to ISO7185?

function 1func (var i:integer):integer;
begin
   if i>0 then
   for i:= 0 to 10 do
   begin
     ...
   end;
end;

function 2func:integer;
var a:integer;
begin
   a:= 1;
   2func:= 1func(a);
   ...
end;




 8 Posts in Topic:
Loop variables in ISO 7185
2metre <news55@[EMAIL   2005-06-28 11:33:13 
Re: Loop variables in ISO 7185
frank@[EMAIL PROTECTED]   2005-06-28 14:33:53 
Re: Loop variables in ISO 7185
akarl <fusionfive@[EMA  2005-06-28 15:15:57 
Re: Loop variables in ISO 7185
2metre <news55@[EMAIL   2005-06-28 17:22:03 
Re: Loop variables in ISO 7185
frank@[EMAIL PROTECTED]   2005-06-28 18:41:08 
Re: Loop variables in ISO 7185
2metre <news55@[EMAIL   2005-06-29 11:34:52 
Re: Loop variables in ISO 7185
frank@[EMAIL PROTECTED]   2005-06-29 14:32:18 
Re: Loop variables in ISO 7185
2metre <news55@[EMAIL   2005-06-29 15:49:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Thu May 15 1:00:47 CDT 2008.