Raised This Month: $32 Target: $400
 8% 

New API and Syntax


Post New Thread Reply   
 
Thread Tools Display Modes
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 12-10-2014 , 08:36   Re: New API and Syntax
Reply With Quote #221

Code:
throw
We are going to have exceptions in sp? :-O
KissLick is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-10-2014 , 08:40   Re: New API and Syntax
Reply With Quote #222

Quote:
Originally Posted by KissLick View Post
Code:
throw
We are going to have exceptions in sp? :-O
The point is to landgrab everything to avoid more breaking changes in the future, none of them mean anything at the moment.
__________________
asherkin is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 12-10-2014 , 13:13   Re: New API and Syntax
Reply With Quote #223

you plan to actually add real variables type and size?

Last edited by Mathias.; 12-10-2014 at 13:13.
Mathias. is offline
BAILOPAN
Join Date: Jan 2004
Old 12-10-2014 , 17:20   Re: New API and Syntax
Reply With Quote #224

I plan to steal every keyword I reasonably can so I can add features well into the future without breaking stuff ;)
__________________
egg
BAILOPAN is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 12-10-2014 , 17:52   Re: New API and Syntax
Reply With Quote #225

try|catch sounds really really nice .
__________________
~Wliu
Wliu is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 12-10-2014 , 21:45   Re: New API and Syntax
Reply With Quote #226

throw frog;
return Success;
__________________
Chdata is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-12-2014 , 10:11   Re: New API and Syntax
Reply With Quote #227

So, apparently the 1.7 compiler is choking on dhooks.inc, particularly these lines:

Code:
funcenum DHookCallback
{
	//Function Example: void Ham::Test() with this pointer ignore
	MRESReturn:public(),
	
	//Function Example: void Ham::Test() with this pointer passed
	MRESReturn:public(this),
	
	//Function Example: void Ham::Test(int cake) with this pointer ignore
	MRESReturn:public(Handle:hParams),
	
	//Function Example: void Ham::Test(int cake) with this pointer passed
	MRESReturn:public(this, Handle:hParams),
	
	//Function Example: int Ham::Test() with this pointer ignore
	MRESReturn:public(Handle:hReturn),
	
	//Function Example: int Ham::Test() with this pointer passed
	MRESReturn:public(this, Handle:hReturn),
	
	//Function Example: int Ham::Test(int cake) with this pointer ignore
	MRESReturn:public(Handle:hReturn, Handle:hParams),
	
	//Function Example: int Ham::Test(int cake) with this pointer passed
	MRESReturn:public(this, Handle:hReturn, Handle:hParams),
	
	//Address NOW
	
	//Function Example: void Ham::Test() with this pointer passed
	MRESReturn:public(Address:this),
	
	//Function Example: void Ham::Test(int cake) with this pointer passed
	MRESReturn:public(Address:this, Handle:hParams),
	
	//Function Example: int Ham::Test() with this pointer passed
	MRESReturn:public(Address:this, Handle:hReturn),
	
	//Function Example: int Ham::Test(int cake) with this pointer passed
	MRESReturn:public(Address:this, Handle:hReturn, Handle:hParams)
	
};
It seems to not like the "this" in these declarations as all the ones that have an arg named "this" are bombing with these types of messages:

C:\Projects\SourceMod\notepad++\sourcepawn.co mpiler\include\dhooks.inc(99) : error 010: invalid function or declaration

I know we're adding new keywords, but it's a Bad Thing (tm) to break existing code while doing that.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 12-12-2014 , 10:53   Re: New API and Syntax
Reply With Quote #228

Quote:
Originally Posted by BAILOPAN View Post
I plan to steal every keyword I reasonably can so I can add features well into the future without breaking stuff ;)
Steal all the things!
http://www.dotnetperls.com/keyword
__________________
ehha is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 12-12-2014 , 12:59   Re: New API and Syntax
Reply With Quote #229

Powerlord, you can change "this" by any other name and it will work, I highly doubt that 1.7 and above will allow any plugins to reserve the keyword "this" since it will become (already is in 1.7) a main feature.
Mathias. is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 12-12-2014 , 13:02   Re: New API and Syntax
Reply With Quote #230

Quote:
Originally Posted by Black-Rabbit View Post
Powerlord, you can change "this" by any other name and it will work, I highly doubt that 1.7 and above will allow any plugins to reserve the keyword "this" since it will become (already is in 1.7) a main feature.
what about "Self" ? Not that it matters but asking out of curiosity unless curiosity will kill your avatar :>
__________________

Last edited by nergal; 12-12-2014 at 13:02.
nergal is offline
Reply


Thread Tools
Display Modes

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 22:51.


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