From: Tim Hunter Date: 2002-12-02T09:05:31+09:00 Subject: Re: Validation during object creation Throw the appropriate exception. I don't think new can return anything except the new object. On Mon, 02 Dec 2002 06:33:11 +0900, Roman Rytov wrote: > I'm a newcommer to Ruby and I haven't read completely the book yet, so > excuse me for a very basic question. > > What's the way to signal to a NEW()'s caller that an object can't be > created? To return NIL? To throw an exception? > > > Roman