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