Raised This Month: $51 Target: $400
 12% 

[SLVD] Pawn Cell Size


Post New Thread Reply   
 
Thread Tools Display Modes
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 05-05-2015 , 20:37   Re: [SLVD] Pawn Cell Size
Reply With Quote #11

Quote:
Originally Posted by fysiks View Post
Isn't that just a cast? Is there more than one type of cast in C/C++?
PHP Code:
int a 5;
void= (void*)&a;
intstatic_cast<int*>(x); 
And that is just 2 of the types of casting.
__________________
WildCard65 is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 05-06-2015 , 03:31   Re: [SLVD] Pawn Cell Size
Reply With Quote #12

Quote:
Originally Posted by fysiks View Post
Isn't that just a cast? Is there more than one type of cast in C/C++?
Quote:
Originally Posted by WildCard65 View Post
PHP Code:
int a 5;
void= (void*)&a;
intstatic_cast<int*>(x); 
And that is just 2 of the types of casting.
Quote:
Originally Posted by claudiuhks View Post
dynamic_cast, static_cast, reinterpret_cast, bad_cast, safe_cast and const_cast operators.
Read more at MSDN.
PAWN_CELL_SIZE is currently 32 everywhere so I guess the [#if defined #else #endif] check is useless for now.
Not one or two there are 6 types of casts according to MSDN.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-06-2015 , 04:26   Re: [SLVD] Pawn Cell Size
Reply With Quote #13

Quote:
Originally Posted by fysiks View Post
Isn't that just a cast? Is there more than one type of cast in C/C++?
That's generally called a C-style cast I think, the other C++ ones are safer and should be used instead (if you are writing a C++ program, of course).
klippy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:01.


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