LEICHTER-JERRY@YALE.ARPA.UUCP (03/14/87)
I am writing a package of subroutines in BASIC (v2.3) and I would like to be able to have the users who use these subroutines be able to leave parameters out and have them default to some specified value. The documentation is not very good in this area, but I assume it can be done *somehow*. I know it can be done in Pascal and Macro. I haven't really kept up with BASIC of late, so things may have changed, but it used to be impossible to do this. The problem is that the BASIC compiler produces code at the head of each subroutine it compiles that checks to see if the number of arguments passed is the same as the number of arguments expected. If not, you get an error. The other languages you mention don't insert this check. -- Jerry -------