Door Games Unlimited

Welcome, Guest.


Subject: Re: recursion errors Date: Fri Jan 03 2014 16:46:32
From: Digital Man To: echicken

  Re: Re: recursion errors
  By: echicken to Rastus on Fri Jan 03 2014 11:28 am

 >   Re: Re: recursion errors
 >   By: Rastus to Nightfox on Mon Dec 30 2013 15:20:04
 >
 >  Ra> bbs.exec("?Space_Menu.js");
 >
 > This runs "Space_Menu.js" in its own scope, meaning that (likely) won't
 > have access to variables or functions defined in the script that called it.
 >
 >  Ra> load("Space_Menu.js");
 >
 > This loads "Space_Menu.js" into the scope of the script that's currently
 > running.  (If it helps, you can think of it as essentially appending the
 > contents of "Space_Menu.js" to the current script.  That may give you some
 > ideas as to how "Space_Menu.js" is able to reference or modify variables
 > and functions defined in the parent script.)
 >
 > Which of these is best to use depends on the design of your module.

And neither of which is the correct way to launch an external program which has 
been configured in SCFG->External Programs->Online Programs. Just say'n. :-)

                                            digital man

Synchronet "Real Fact" #11:
Synchronet was the first BBS software to ship with built-in RIPscrip support.
Norco, CA WX: 67.9°F, 27.0% humidity, 7 mph SE wind, 0.00 inches rain/24hrs

---
 ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net

Previous Message       Next Message
In Reply To: Re: recursion errors (echicken)
Replies: Re: recursion errors (echicken)Re: recursion errors (Rastus)