home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15402 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.2 KB

  1. Path: sparky!uunet!charon.amdahl.com!amdahl!JUTS!duts.ccc.amdahl.com!aces
  2. From: aces@mcode.amdahl.com (Jeffrey D. Smith)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: CanDo 1.6 bug?
  5. Message-ID: <d4s1022129CW01@JUTS.ccc.amdahl.com>
  6. Date: 4 Nov 92 16:18:49 GMT
  7. Sender: netnews@ccc.amdahl.com
  8. Reply-To: jds30@amail.amdahl.com
  9. Organization: Amdahl Corporation, Sunnyvale Ca.
  10. Lines: 21
  11.  
  12. I noticed what appears to be a bug in CanDo 1.6 callable
  13. routines.
  14.  
  15. I defined 2 GLOBAL routines, say "Fubar" and "Snafu".  I
  16. defined 2 LOCAL routines, say "Snafu" and "Gorko".  I defined
  17. a button script that calls "Gorko" which calls "Fubar" which
  18. calls "Snafu".
  19.  
  20. There are 2 "Snafu" routines, GLOBAL and LOCAL.  The GLOBAL
  21. routine "Fubar" calls "Snafu".  The LOCAL routine calls "Fubar".
  22.  
  23. According to the 1.5 supplement manual, the GLOBAL "Snafu"
  24. routine should not be invoked, but it is invoked when it is
  25. called by "Fubar" (a GLOBAL routine).
  26.  
  27. Button Script calls "Gorko":        It finds the LOCAL "Gorko".
  28. The LOCAL "Gorko" calls "Fubar":    It finds the GLOBAL "Fubar".
  29. The GLOBAL "Fubar" calls "Snafu":    It finds the GLOBAL "Snafu".
  30.  
  31. If I make a copy of the GLOBAL "Fubar" as a LOCAL "Fubar", then
  32. the LOCAL "Snafu" is invoked.  This appears to be a bug.  Is it?
  33.