|
-
Nov 8th, 2004, 05:04 PM
#1
Thread Starter
Frenzied Member
what are subroutines and subprocedures?{resolved}
Does anyone know what this is? I googled this and couldn't find anything helpful, so maybe someone here can tell me what they are.
Last edited by System_Error; Nov 9th, 2004 at 06:18 AM.
-
Nov 8th, 2004, 09:48 PM
#2
Dazed Member
As far as i remember a sub-procedure does not return a value. I remember using sub-procedures when i programmed in Visual Basic 5 and 6 a long time ago.
-
Nov 9th, 2004, 06:17 AM
#3
Thread Starter
Frenzied Member
I found out yesterday that subroutines and subprocedures are just programming jargon for methods. I was thinking it was something diffrent though. Thanks for your input.
-
Nov 9th, 2004, 05:58 PM
#4
Dazed Member
No problem. Yeah it's just more MS BS.
-
Nov 9th, 2004, 06:53 PM
#5
Thread Starter
Frenzied Member
Originally posted by Dilenger4
Yeah it's just more MS BS.
I couldn't have said it any better.
-
Nov 10th, 2004, 11:40 AM
#6
Frenzied Member
Originally posted by Dilenger4
No problem. Yeah it's just more MS BS.
I like to bash Microsoft as much as the rest of you, but in their defense, these terms were in use long before anyone ever heard of Bill and/or his company.
Method, subroutine, function, procedure, subprocedure - these are all terms for a block of code that can be called from any place in your code. In today's world of OOP, we use the term method. Thirty years ago, when I started coding, function and subroutine/procedure were the common terms.
Subprocedure generally refers to a subroutine that is nested within a subroutine. Some languages (that I have used) that support this are PL/I and Pascal. Variables declared in the subroutine are 'global' to the subprocedure, but variables declared in the subprocedure are not available to the subroutine. Also, the subprocedure can only be called by its 'parent' subroutine.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|