Date : Fri, 07 Dec 2012 13:44:22 +0100
From : rick@... (Rick Murray)
Subject: Granny's Garden
Hi,
I think BASIC V introduced multi-line IFs. However if you IF to a PROC or
rethink your algorithm, you can have much the same effect 90% of the time.
There's NO excuse to GOTO...
Best wishes,
Rick.
Kris Adcock <beeb@...> wrote:
>Morning gents!
>
>I meant to pass this link around t'other week, but I've been dying of
>man-flu:
>
>http://www.danceswithferrets.org/meeblog/?p=1757
>
>I imagine all you guys have already completed Granny's Garden, but for
>me it was quite important to finish off something that I started in
>primary school. :)
>
>On a related note: on writing the above, I looked through the BASIC
>listing for GG to see if there was any rhyme or reason to many of the
>puzzles (it turns out there isn't, but there was still some interesting
>reading).
>
>I was quite shocked to discover that the code is really quite dreadful!
>There is an unhealthy mix of GOTOs and PROCs, no use of FNs when they
>would have been a much more elegant solution, and a fair few dirty
>tricks to clean-up the stack (which leaks like buggery thanks to all the
>PROCs-and-GOTOs).
>
>But I was just wondering: were FNs and multi-line IFs only added to
>later versions of BASIC? This might explain some of the programmer's
>choices ... or was it just that he didn't know about them?
>
>So far I'm resisting the urge to rewrite it all. I think after thirty
>years, that ship has sailed. :)
>
>All the best,
>
>Kris Adcock
>
>_______________________________________________
>bbc-micro mailing list
>bbc-micro@...
>http://lists.cloud9.co.uk/mailman/listinfo/bbc-micro
>