Valhalla Legends Archive

Testing / off-topic / bad posts => Testing Forum => Topic started by: MoNksBaNe_Agahnim on November 15, 2003, 06:48 PM

Title: sig test
Post by: MoNksBaNe_Agahnim on November 15, 2003, 06:48 PM
nt
Title: Re:sig test
Post by: xsemaphorex on November 19, 2003, 12:05 PM
sig test
Title: Re:sig test
Post by: iago on November 19, 2003, 12:38 PM
Quote...
if( you->HasQuestion() && !( you->rtfm() || you->rtfs() || you->rtfb()) ) {
   you->stfu();
   you->gtfo();
   delete(you);
}
....

I would recommend making sure that you is a valid pointer, since if you is null that'll crash.

I would recommend
...
if( you && you->HasQuestion() && !( you->rtfm() || you->rtfs() || you->rtfb()) ) {
   you->stfu();
   you->gtfo();
   delete(you);
}
...


or

...
if( you != NULL && you->HasQuestion() && !( you->rtfm() || you->rtfs() || you->rtfb()) ) {
   you->stfu();
   you->gtfo();
   delete(you);
}
...
Title: Re:sig test
Post by: Eibro on November 19, 2003, 03:23 PM
Delete is not a function, it's an operator.
Title: Re:sig test
Post by: iago on November 19, 2003, 04:16 PM
Quote from: Eibro on November 19, 2003, 03:23 PM
Delete is not a function, it's an operator.

That too! :)