Raised This Month: $ Target: $400
 0% 

Why are new functions mixed capitalized?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
harbu
Senior Member
Join Date: Aug 2004
Location: Finland
Old 01-06-2007 , 10:34   Why are new functions mixed capitalized?
Reply With Quote #1

For example the sqlX module, the new hud system and new api for plugin intercommunication. Is there a reason why they are not all in lowercase like the rest of the functions but part of them are capitalized? I just find it a pain in the ass to have to capitlize them everytime and often get errors because of this.

Code:
SQL_Connect
SQL_GetInsertId

CreateHudSyncObj
CreateMultiForward
CreateOneForward
__________________
harbu is offline
Send a message via MSN to harbu
Rixorster
Senior Member
Join Date: Jul 2005
Old 01-06-2007 , 10:38   Re: Why are new functions mixed capitalized?
Reply With Quote #2

Yeh, it's fucked up :S
__________________
You never know, what will happen the day after tomorrow...

+karma if i helped you!

Last edited by Rixorster; 01-06-2007 at 11:47.
Rixorster is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-06-2007 , 13:31   Re: Why are new functions mixed capitalized?
Reply With Quote #3

SQLx is all capitalized..

http://www.amxmodx.org/funcwiki.php?go=inc&id=50

Anyway, what are you talking about?


Every new word or part of word usually gets capitalized..

Just like in most variables.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Rixorster
Senior Member
Join Date: Jul 2005
Old 01-06-2007 , 13:54   Re: Why are new functions mixed capitalized?
Reply With Quote #4

All other functions from before (Engine functions etc.) are not capitalized. :/
__________________
You never know, what will happen the day after tomorrow...

+karma if i helped you!
Rixorster is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 01-06-2007 , 14:38   Re: Why are new functions mixed capitalized?
Reply With Quote #5

Well it isn't the same module now is it?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
harbu
Senior Member
Join Date: Aug 2004
Location: Finland
Old 01-06-2007 , 15:07   Re: Why are new functions mixed capitalized?
Reply With Quote #6

Ehh? Everything else in the core is lowercase except the new hud functions. DBI functions are in lowercase, same for fun, most of engine, cstrike, dodx, dodfun, fakemeta, nvault, tsx etc. Why break the trend on SQLx and the new hud functions?
__________________
harbu is offline
Send a message via MSN to harbu
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 01-06-2007 , 15:11   Re: Why are new functions mixed capitalized?
Reply With Quote #7

It because the person who design the code was Bailopan. Personally I like this style better then the old way. So he would be know the reason why he did it that way.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-06-2007 , 17:48   Re: Why are new functions mixed capitalized?
Reply With Quote #8

BAILOPAN has matured. That's why it's changed.
__________________
Brad is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 01-06-2007 , 21:42   Re: Why are new functions mixed capitalized?
Reply With Quote #9

For those of you that don't know:

Code:
this_is_linux_style()
ThisIsWindowsStyle()
I've always stuck with the latter style and apparently as stated before, BAIL likes the window's style to (it's easier to tell what is a function, and what is a variable and other stuff.)

You could use defines though if you're that annoyed with it.

Code:
// IIRC you can do this in pawn. #define this_is_my_function AFunctionUsingWindowsStyle this_is_my_function(hi);
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-07-2007 , 00:20   Re: Why are new functions mixed capitalized?
Reply With Quote #10

Those two styles have nothing to do with Windows or Linux.
__________________
Brad 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 14:46.


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