Jump to content

Talk:Jensen's Device: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6:
 
Not knowing much about ALGOL60, I'm curious about its semantics -- why is i declared twice? When iterating over i, is that value being assigned local to sum, or is it being assigned in sum's caller? --[[User:Saccade|Saccade]] 21:50, 5 May 2011 (UTC)
 
:<code>i</code> is passed by reference to <code>sum</code>, the "first declaration" represents the declaration of the storage and the "second declaration" is the declaration of the type of the argument (much like a K&R C parameter list) in the parameters for <code>sum</code>. --[[User:Rdm|Rdm]] 21:57, 5 May 2011 (UTC)
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.