Re: New API and Syntax
Quote:
|
Re: New API and Syntax
Again a milestone for every developer, nice!
|
Re: New API and Syntax
Hate me, but I loved SP for it's syntax. :(
|
Re: New API and Syntax
Quote:
|
Re: New API and Syntax
I've adapted the smjansson includes and test plugin to the new syntax to see how it feels. Here
This was quite easy and i'm really pleased with the new syntax. Good job! Have one question though: How to deal with e.g. INVALID_HANDLE checks? Cast (i.e. tag) the methodmap as a Handle before comparison? |
Re: New API and Syntax
Looks awesome. Can't wait to give it a spin! :)
|
Re: New API and Syntax
Quote:
|
Re: New API and Syntax
Quote:
Using INVALID_HANDLE does work if I cast the methodmap to a Handle first, null on the other hand does only work if i cast it to the corresponding object type. E.g. this does not work unless the comparison is: f != StringMap:null Code:
#include <sourcemod> sm17.test.sp(6) : error 132: cannot coerce non-object type StringMap to object type null_t Is there a way to avoid tagging of null or the other value altogether? Also more questions if you don't mind:
And one bug report: it is possible to crash the compiler by using delete instead of CloseHandle. It is easily reproducible by changing line 1013 of the previously linked smjansson include to use delete and trying to compile the test plugin that comes with it. Sorry for not having a smaller and more specific testcase for this. Thanks! Edit: The wiki says: Quote:
|
Re: New API and Syntax
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: New API and Syntax
Quote:
|
All times are GMT -4. The time now is 06:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.