🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #271

Passing arguments to Procedures

#271
From: ST21519
Date: Thu, 08 Oct 1992 22:35
11 lines
1033 bytes
In the past I fell into the trap of declaring almost all of my variables as
global ones as I only had a handful of them, but now the list keeps growing and
I have begun looking to passing arguments as perhaps a better method of writing
for memory considerations as well as just nicer looking code.
 
Are there any potential "GOTCHAS" when one uses the same variable to pass to
a procedure that is returned by the procedure?  I have played with this on a
very limited basis with Functions and would like to expand to Subprograms so
far without any known problems.
 
Thanks.
Technical Details
Message-ID: <1687AE96E.ST21519@VM.CC.LATECH.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!think.com!rpi!zaphod.mps.ohio-state.edu!darwin.sura.net!newshost.latech.edu!VM.CC.LATECH.EDU!ST21519

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!think.com!rpi!zaphod.mps.ohio-state.edu!darwin.sura.net!newshost.latech.edu!VM.CC.LATECH.EDU!ST21519
From: ST21519@VM.CC.LATECH.EDU
Newsgroups: alt.lang.basic
Subject: Passing arguments to Procedures
Message-ID: <1687AE96E.ST21519@VM.CC.LATECH.EDU>
Date: 8 Oct 92 22:35:57 GMT
Sender: usenet@engr.latech.edu
Organization: LOUISIANA TECH UNIVERSITY
Lines: 11
Nntp-Posting-Host: vm.cc.latech.edu