From: dave Date: 2005-06-01T20:13:26+09:00 Subject: Re: array of object insert polices > You should have a look at the thread: > Uniform vector class, inheriting from Array > Duck typing. �Code that relies on ints in there will soon discover if > someone puts something non numeric in there. I had a look at Chapter 23 Duck Typing of Programming Ruby. I understand that i haven't to validate imput type, this let me a little bit lost. >"Code that relies on ints will discover" ..and what if i write a class to calculate a productory and who uses this class see something like that on the monitor: "i'm an integer Hahhaaai'm an integer Hahhaaai'm an integer Hahhaaai'm an integer Hahhaaai'm an integer Hahhaaai'm an integer Hahhaaai'm an integer Hahhaaai'm an integer Hahhaaai'm an integer Hahhaaa" (he wronged to parse an imput file `integers: 3 3`). maybe unit tests can help me? help me, please. -- >here are more things in heaven and earth, horatio, than are dreamt of in your philosophy.