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 3 > Re: some though...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 62 of 148
Post > Topic >>

Re: some thoughts about PROCEDUREs

by "Rodney M. Bates" <rodney@[EMAIL PROTECTED] > Sep 3, 2003 at 12:22 AM

On Tue, 02 Sep 2003 18:42:25 +0200, Henning Thielemann wrote:

....
> 
> It is even possible to go one step further: PROCEDURE and ARRAY are very
> similar. In the mathematical sense they are mappings. They only differ
in
> the implementation: PROCEDUREs employ some computations to get the
results
> whereas ARRAYs stores all possible results simultanously. The input
> arguments of a PROCEDURE are like indices of an ARRAY and can be
perfectly
> collected in a RECORD. ... 

Actually, this is only true when an element of the array is read.  But
a subscripted array A[I} can also appear on the LHS of an assignment, 
and in this way arrays are quite different.  Ada tried to pretend the
similarity was greater than it is by using parentheses for both array
subscripting and actual parameters to a call.  By the time the unfortunate
consequences all fell, the notation A(I) ended up with 19 semantically 
distinct kinds of possible meanings, all syntactically identical. 
Figuring out what it really means can depend on context information taken 
from many scopes. 

Well, maybe I am remembering wrong and it is only 17.  At the present
hour, I don't have the energy to go through them and count again. 
  
 

-- 
Rodney M. Bates
 




 3 Posts in Topic:
some thoughts about PROCEDUREs
Henning Thielemann <ia  2003-09-02 18:42:25 
Re: some thoughts about PROCEDUREs
"Rodney M. Bates&quo  2003-09-03 00:22:31 
Re: some thoughts about PROCEDUREs
leeo@[EMAIL PROTECTED] (  2003-09-02 20:48:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Jul 6 1:23:27 CDT 2008.