[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My First Computer



"Cameron Kaiser" <ckaiser@floodgap.com> wrote in message
news:3e487c50$0$171$45beb828@newscene.com...
> >TO HELLO
> >PRINT [Hello]
> >HELLO
> >END
>
> I should think you'll exhaust your stack in no time with that kind of
> recursion.

Since there's no work to do after the recursive call, the compiler should be
smart enough to implement the ("tail recursive") call as a jump.  Most
Lisp/Scheme compilers have been that smart for decades.  GCC handles it if
you specify -O4.  Since Logo was designed by one of the big names in Scheme,
I would hope that most Logo environments are smart enough.

Kelly