Discussion Board
Go to the previous messageThere are no next messages
Current Forum: Homework 6 Part 1
Date: Mon Dec 10 2001 5:27 pm
Author: Maxim, Michael G. <mmaxim@andrew.cmu.edu>
Subject: Re: move[]

Jason,

I don't see why checking for the length of the array is a problem. It is one if statement and then you can have two different private function calls handle the two types of moves.

Also, I do not think it is a good idea to have two functions in the interface with the same name that do the same thing, just on slightly different input. The goal of the interface is to be general, the implementation should deal with the different sizes.

Mike
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
move[]      Cipriani, Jason A.      Mon Dec 10 2001 3:43 am       
Re: move[]      Ghosh, Debmallo S.      Mon Dec 10 2001 5:13 pm       
Re: move[]      Maxim, Michael G.      Mon Dec 10 2001 5:27 pm       

Back to previous screen