Re: New API and Syntax
Quote:
|
Re: New API and Syntax
Quote:
|
Re: New API and Syntax
Thank you! i've been waiting for something like this for a long time.
Please, don't stop even if it means breaking compatibility with old scripts. |
Re: New API and Syntax
Disliked this topic. For objects and classes we have C++
|
Re: New API and Syntax
But sometimes working with objects & classes is much easier...
|
Re: New API and Syntax
Nice, thanks for the fixes.
Found another bug regarding null passed as an any parameter though: Code:
Foo(any foo) {} A rather cosmetic issue: combining getters and setters works if used like this this.Processed = this.Processed + 1; which is nice. this.Processed++ garbles up the value though. This is at least the case for methodmaps deriving from StringMap and setting an integer in the trie, i.e. Code:
methodmap Foo < StringMap { |
Re: New API and Syntax
Sorry, fat-fingered and garbled your post up a bit. re: increment bug, will take a look soon.
null not flowing into any is intended. any makes the bit-encoding of values observable which is illegal for object types, and null is considered an object type. While not strictly necessary in this case, it makes sure we don't have any GC-safety problems with null in the future. |
Re: New API and Syntax
Quote:
|
Re: New API and Syntax
Quote:
|
Re: New API and Syntax
So I read over this about 5 times. Maybe I'm stupid (I probably am) but I just don't see the need for this. The reason I got in coding 4 years ago, is because of the simplicity of the SourcePawn language and the need to make my server more unique. I remember not knowing what anything means (my worst enemy was tag mismatch), but still getting basic things done like printing to chat, setting health, etc. After awhile, I finally began to really learn why I was getting tag mismatch, why this was done, why that was done. With C#/Java or "C# Lite" as it's been called in the first post I still probably would have been unable to exactly understand why most things are done are that way. Sure I could probably make some basic edits (because words and I can read), but I wouldn't be able to get the true meaning of things as I did for SourcePawn. I think the current ease of language not only allows complete newbies to try, but it also opens doors. It certainly did for me.
Quote:
|
All times are GMT -4. The time now is 03:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.