[Tutor] my newbie program

alan.gauld@bt.com alan.gauld@bt.com
Thu Nov 21 12:46:42 2002


> > I find the index of the command within the list of commands.
> > -dirindex+1 simply takes the negative value after adding one to it.
> 
> Tsk tsk. I would not have expected this coming from you ;-)

Yep, sloppy. 
I corrected it in my followup but in defense it was only 
meant to be pseudo code!

> Which only goes to show: when in doubt, use brackets.

Very true and the same advice I give in my tutor, for now 
obvious reasons! :-)

Alan g.
Author of the 'Learning to Program' web site
http://www.freenetpages.co.uk/hp/alan.gauld