"quit all" does not quit all
| Newsgroups | gmane.comp.windows.power-pro |
|---|---|
| Message-ID | <[email protected]> |
Script: local a = 1 One() win.debug(a) quit all Function One() quit all Two quotations from manual about the "quit all" operator: "Ends execution of all running scripts", and "Ends any calling scripts too". That is, the second "quit all" (in the "One" function body) must stop both this function, and the calling (main) script, right? Yes, that's right, script execution is terminated at the last code line. No debug window appears. Let's insert some mindless line in the "One" function: local x = vec.create(2) That is, the function gets: Function One() local x = vec.create(2) quit all In this case, however, the debug windows with the "1" message appears. That is, only the called script is terminated but not the calling one. I consider this as a bug. Yours sincerely, Vochomurka ------------------------------------ Posted by: pprotcmd <[email protected]> ------------------------------------ PowerPro's download site: http://powerpro.cresadu.com/