home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / perl / 5339 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  1.1 KB

  1. Path: sparky!uunet!eiffel!eiffel.com
  2. From: ram@eiffel.com (Raphael Manfredi)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: array bug
  5. Summary: Not an array bug!
  6. Keywords: infinite recursion
  7. Message-ID: <115@eiffel.eiffel.com>
  8. Date: 16 Aug 92 22:17:50 GMT
  9. References: <Bt1rC8.E6J.1@cs.cmu.edu>
  10. Sender: ram@eiffel.com
  11. Organization: Interactive Software Engineering, Santa Barbara CA
  12. Lines: 24
  13.  
  14. Quoting jfriedl@cs.cmu.edu from comp.lang.perl:
  15. |The following (contrived) program dumps core with 4.035
  16. |
  17. |    &foo;
  18. |    sub foo {
  19. |        ($a, $b) = &foo('fi','b');
  20. |    }
  21. |
  22. |I've run it (and had the problem) on Sun 3, Sun 4, IBM-RT,
  23. |Pmax, Vax, and Luna/88k.
  24. |
  25. |Any ideas?
  26.  
  27. None (sic)... But you should try to "execute" this program yourself,
  28. that is simulate it by hand. When you're done with it, the final
  29. value in $a should give you the answer to your question. :-)
  30.  
  31. You could also try to imagine what may happen on your machine when the
  32. heap encounters the stack.
  33. -- 
  34. Raphael Manfredi <ram@eiffel.com>
  35. Interactive Software Engineering Inc.
  36. 270 Storke Road, Suite #7                      / Tel +1 (805) 685-1006 \
  37. Goleta, California 93117, USA                  \ Fax +1 (805) 685-6869 /
  38.