Valhalla Legends Forums Archive | Testing Forum | sig test

AuthorMessageTime
MoNksBaNe_Agahnim
nt
November 16, 2003, 12:48 AM
xsemaphorex
sig test
November 19, 2003, 6:05 PM
iago
[quote]...
if( you->HasQuestion() && !( you->rtfm() || you->rtfs() || you->rtfb()) ) {
you->stfu();
you->gtfo();
delete(you);
}
....[/quote]

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

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

or

[code]...
if( you != NULL && you->HasQuestion() && !( you->rtfm() || you->rtfs() || you->rtfb()) ) {
you->stfu();
you->gtfo();
delete(you);
}
... [/code]
November 19, 2003, 6:38 PM
Eibro
Delete is not a function, it's an operator.
November 19, 2003, 9:23 PM
iago
[quote author=Eibro link=board=8;threadid=3631;start=0#msg30136 date=1069277036]
Delete is not a function, it's an operator.
[/quote]

That too! :)
November 19, 2003, 10:16 PM

Search