AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Destructors (https://forums.alliedmods.net/showthread.php?t=294750)

felipemilralze 03-06-2017 13:11

Destructors
 
How to use the destructors?

fysiks 03-06-2017 13:14

Re: Destructors
 
What are you talking about?

felipemilralze 03-06-2017 13:38

Re: Destructors
 
How to use the deconstructors and what is it for? -> "~"

wickedd 03-06-2017 14:20

Re: Destructors
 
Quote:

Originally Posted by fysiks (Post 2501315)
What are you talking about?


klippy 03-06-2017 14:24

Re: Destructors
 
He must be talking about C++ or C# or some similar language.

felipemilralze, this part of the forums is for scripting help with AMXX plugins (Pawn language). Pawn isn't object-oriented and has no destructors.

PartialCloning 03-06-2017 14:39

Re: Destructors
 
"~" is used as a bitwise NOT operator but they're not destructors.

felipemilralze 03-07-2017 11:46

Re: Destructors
 
I see this "~" a lot in server code to deny something like "!"

edon1337 03-07-2017 13:30

Re: Destructors
 
Quote:

Originally Posted by felipemilralze (Post 2501537)
I see this "~" a lot in server code to deny something like "!"

It's a bit-wise operator which means 'NOT'.

fysiks 03-07-2017 19:01

Re: Destructors
 
Quote:

Originally Posted by felipemilralze (Post 2501537)
I see this "~" a lot in server code to deny something like "!"

I don't know what you mean by "deny" but the tilde is bit-wise NOT (as previously stated) and the exclamation point is a logical NOT.

felipemilralze 03-09-2017 09:24

Re: Destructors
 
Thank you all solved my doubt


All times are GMT -4. The time now is 17:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.