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

Re: LOGO-L> QUESTION ON CONDITIONAL OUTPUTS



At 12:44 AM 4/26/98 -0400, George Mills wrote:
>I think your idea of a call stack of errors is great.
>But could get a bit messy on deeply recursive procedures.

Should be easy enough to add heuristics which will print something like
       ADD cannot add a non numeric value.  It had inputs A and 3.
       It was called from ADDLISTS [A 6] [9 2]
       Which was called from ADDLISTS [4 A 6] [1 9 2]
       ... (75 nested calls to ADDLISTS)
       Which was called from ADDLISTS [(78 members...)] [(78 members...)]
       Which was called from MAIN
       Which was called from the command line.

Plus (sorry Brian, I had to add this), messy traceback on deeply recursive
calls could demonstare the suitability of for-loop style iteration to some 
cases where recursion is an overkill.

Chuck Shavit
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home