Talk:Procedural parameter
Add topic| This article has not yet been rated on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||
| ||||||||||||||||||
Disk integral example
[edit]The disk integral example seems to be chopped up, or how do I have to understand a procedure in a procedure in a procedure? Thanks, --Abdull (talk) 11:51, 26 July 2008 (UTC)
- That is the precisely the point. The outer procedure "DiskIntg" computes the integral over the disk. The middle procedure "gring" computes the integral over a ring. The innermost procedure "gpolar" converts polar to Cartesiam coordinates and calls the function to be integrated. Note that "gring" must be defined inside "DiskIntg" because it depends on the argument "R" (without "intgr" knowing it). And "gpolar" must be defined inside "gring" because it depends on the argument "z" (ditto). All the best, --Jorge Stolfi (talk) 13:57, 17 August 2009 (UTC)
"the call P (evil) will not make much sense"
[edit]In the fourth and final example within the section 'Basic Concept', why is it the case that "the call P (evil) will not make much sense"?
Is it because the procedure line isn't terminated with a colon?
Or is it because the evil procedure was called without passing a variable for z?
If the latter, then the explanation for the second example also needs improving, because as it reads—"we may call P (plus)"—there is no mention of passing a variable for x or y. — Preceding unsigned comment added by ~2026-11552-09 (talk) 19:43, 24 February 2026 (UTC)