Re: general subroutine question
- From: usenet@xxxxxxxxxxxxxxx
- Date: 30 Aug 2006 11:07:24 -0700
Derek B. Smith wrote:
Is there a commonly known way or method to limit the
number of arguments that a subroutine can store or pass?
You could kinda do that with prototypes, but that's not really a good
idea.
But subroutines are called by programs. The best way to limit what
happens is to write the limits into the code (for example, if you pass
an array to a sub but don't want to pass a huge array, pre-validate the
array's size before passing it to the sub).
--
David Filmer (http://DavidFilmer.com)
.
- References:
- general subroutine question
- From: Derek B. Smith
- general subroutine question
- Prev by Date: general subroutine question
- Next by Date: Re: general subroutine question
- Previous by thread: general subroutine question
- Next by thread: Re: general subroutine question
- Index(es):
Relevant Pages
|