readExact Problem
David B. Held
dheld at codelogicconsulting.com
Fri May 25 21:36:29 PDT 2007
Charma wrote:
> [...]
> anyone can help?!?
One thing that might help a lot is if you take advantage of the built-in
unittest feature. So as you are writing your code, when you are not
entirely confident that you know how something works, just throw in a
unittest
{
// write short test here
}
block and build with -unittest to see what D thinks of your code. If
you really want to get fancy, you should try Test-Driven Development,
which requires that you write your tests first, and then work on your
code until they pass.
Dave
More information about the Digitalmars-d
mailing list