On 30 Aug 2006, at 21:28, David Nicol wrote:
I just realized that goto sub is a better framework for implementing
such things, anyway:

I don't think goto sub can really be described as a framework... Or if it can may I start describing if() as a decision support system too?

# perl -wle 'sub f{ f()}; f()'
Deep recursion on subroutine "main::f" at -e line 1.
Out of memory!
# perl -wle 'sub f{ goto &f}; f()'
^C
#

Yup, OK.

But why are you showing us this stuff? Who is it for? I'd have thought that anyone who was interested would have already read HOP and/or worked it out for themselves.

Who on this mailing list do you believe is interested in your investigations?

Oh and I can't believe you've only skimmed HOP - it's a superb book
that should be mandatory reading if this is an area you're interested
in.

so was the textbook in Lisp class.

I'm surprised it covered Perl.

--
Andy Armstrong, hexten.net

Reply via email to