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 > ISO Open Array ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 331 of 376
Post > Topic >>

ISO Open Array Parameters

by "Tom Breeden" <tmb@[EMAIL PROTECTED] > Apr 10, 2007 at 09:00 AM

Hi all,

I've just noticed that ISO M2 specifies that it is never allowed to assign
to an open array parameter as a whole
while within the called procedure.

eg,

      PROCEDURE P(VAR a:ARRAY OF CHAR);
     BEGIN

     a := "a string";

     END P;

is not allowed.

That seems a bit odd, considering a string literal can be assigned to any
other character array variable, no matter what the declared size.

It does not seem to pose implementation difficulties for the compiler,
since
the HIGH value is at a known place on the stack.

I must be overlooking the rationale? What was the thinking on this?

Thanks,

Tom
 




 7 Posts in Topic:
ISO Open Array Parameters
"Tom Breeden" &  2007-04-10 09:00:05 
Re: ISO Open Array Parameters
"Chris Burrows"  2007-04-10 23:29:51 
Re: ISO Open Array Parameters
Martin Whitaker <spamt  2007-04-10 20:33:25 
Re: ISO Open Array Parameters
Keith Hopper <asgard@[  2007-04-12 10:09:09 
Re: ISO Open Array Parameters
"Tom Breeden" &  2007-04-15 13:27:41 
Re: ISO Open Array Parameters
Martin Whitaker <spamt  2007-04-15 22:35:57 
Re: ISO Open Array Parameters
"Tom Breeden" &  2007-04-16 12:29:47 

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 23:43:01 CDT 2008.