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

New API and Syntax


Post New Thread Reply   
 
Thread Tools Display Modes
BAILOPAN
Join Date: Jan 2004
Old 12-16-2014 , 19:10   Re: New API and Syntax
Reply With Quote #261

Yup - the typeset is fine. For posterity, a typeset has to contain only non-ambiguous types, but a function signature is only ambiguous with another function signature if it has the exact same return type and parameter string.
__________________
egg
BAILOPAN is offline
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 12-23-2014 , 01:50   Re: New API and Syntax
Reply With Quote #262

I suggest an update to http://www.sourcemod.net/plugins.php to be able to search for plugins requiring 1.7 syntax via "compiler needed" variable? Maybe set the default to "any". If someone wants to search for a specific compiler needed, then they could look for it.

When posting a new thread in https://forums.alliedmods.net/newthr...ewthread&f=110 the "Compiler needed:" does not have 1.7 in the drop down box. I'm sure that the webcompiler could reject the 1.7 "compiler needed" if it does not currently support it yet.

Having the ability to look up plugins based on their compiler needed variable will provide tons of instructional code for new programmers to go on, instead of just this thread.
__________________

Last edited by El Diablo War3Evo; 12-23-2014 at 01:53. Reason: added more words
El Diablo War3Evo is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 12-23-2014 , 13:30   Re: New API and Syntax
Reply With Quote #263

why? binary is still the same, only the code change.
Mathias. is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-26-2014 , 10:51   Re: New API and Syntax
Reply With Quote #264

Word of advice:

Don't put a #pragma newdecls required into an included file. It will make it so all included files are parsed with newdecls required, erroring out on any 1.6-style include files you have.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-26-2014 , 11:11   Re: New API and Syntax
Reply With Quote #265

Quote:
Originally Posted by Powerlord View Post
Word of advice:

Don't put a #pragma newdecls required into an included file. It will make it so all included files are parsed with newdecls required, erroring out on any 1.6-style include files you have.
I guess you could put #pragma newdecls required into your include file, then put #pragma newdecls optional at the end of it. That should work, right?

@Bail, you should make newdecls requirement apply only to current file scope, maybe.

Last edited by klippy; 12-26-2014 at 11:13.
klippy is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-26-2014 , 11:34   Re: New API and Syntax
Reply With Quote #266

Quote:
Originally Posted by KliPPy View Post
I guess you could put #pragma newdecls required into your include file, then put #pragma newdecls optional at the end of it. That should work, right?
Very likely, yes.

However, it comes as a bit of a surprise where you include a file then suddenly any includes you included after that start erroring.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 12-26-2014 at 11:34.
Powerlord is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 12-26-2014 , 15:07   Re: New API and Syntax
Reply With Quote #267

If I may be an asshole for a second, can I request for the HUD commands, such as ShowSyncHudText, from the halflife.inc to be put under a methodmap? It most likely looks that it'll be under inheritance of Handle.
__________________

Last edited by nergal; 12-26-2014 at 15:09.
nergal is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-26-2014 , 15:55   Re: New API and Syntax
Reply With Quote #268

Quote:
Originally Posted by nergal View Post
If I may be an asshole for a second, can I request for the HUD commands, such as ShowSyncHudText, from the halflife.inc to be put under a methodmap? It most likely looks that it'll be under inheritance of Handle.
At the moment, it can't be because methodmaps require that the first argument be the object Handle... and for ShowSyncHudText, the first argument is the client index.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 12-26-2014 at 15:55.
Powerlord is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-26-2014 , 15:58   Re: New API and Syntax
Reply With Quote #269

Quote:
Originally Posted by Powerlord View Post
At the moment, it can't be because methodmaps require that the first argument be the object Handle... and for ShowSyncHudText, the first argument is the client index.
A wrapper native can just be made, similar to what was done for some others.
psychonic is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 12-29-2014 , 06:52   Re: New API and Syntax
Reply With Quote #270

Code
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House 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 13:03.


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