:) There are other ways, too. But I don't really mind. /me gonna change XML API just to keep iluxa happy :) 2005/9/26, Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>: > CMyClass& obj=(CMyClass&)NULL; > But here you pretty much write "Yes, please, kill me now, I really want > that." > with your own blood ;-) > > Alexey Parshin wrote: > > >Heh - I know how to create a NULL reference :) > > > >2005/9/26, Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>: > > > > > >> From the web page: > >>"Don't try to use NULL for the parentNode - it would cause GPF instantly :)" > >>So, if NULL is not valid argument, why not take reference instead of > >>pointer now? > >>This way passing NULL would become syntax error. Probably similar > >>changes can > >>be made in other areas, while we are at it. > >> > >>-- > >>Ilya A. Volynets-Evenbakh > >>Total Knowledge. CTO > >>http://www.total-knowledge.com > >> > >> > >> > >> > > > > > >-- > >Alexey Parshin, > >http://www.sptk.net > > > > > > -- > Ilya A. Volynets-Evenbakh > Total Knowledge. CTO > http://www.total-knowledge.com > > -- Alexey Parshin, http://www.sptk.net
List hosted by Total Knowledge