Raised This Month: $ Target: $400
 0% 

charmax & sizeof


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-28-2013 , 06:59   Re: charmax & sizeof
Reply With Quote #1

Quote:
Originally Posted by Leon M. View Post
I never use charsmax for known array sizes anyways. More readable for me since you always get remembered how long the string can be
And if you ever decide to change the length of the array, you must edit your file multiple times instead of just once
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 04-28-2013 , 09:26   Re: charmax & sizeof
Reply With Quote #2

Quote:
Originally Posted by YamiKaitou View Post
And if you ever decide to change the length of the array, you must edit your file multiple times instead of just once
Exactly
EpicMonkey is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-28-2013 , 16:24   Re: charmax & sizeof
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
And if you ever decide to change the length of the array, you must edit your file multiple times instead of just once
A smart coder thinks earlier about it, changed once a variable and that was a quick edit. Well, only if you know what are you doing, so I guess its better to use charsmax

But that sounds conceited ;)

As I said such code is more readable for me, that's why I prefer it :p
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. 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 10:46.


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