🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

AngelScript 1.8.2 WIP 2 (2004/08/11)

Started by
3 comments, last by WitchLord 19 years, 10 months ago
So far I haven't received any bug reports on version 1.8.1. Let's hope it continues that way. I've already started work on the next version and this first WIP brings support for class methods from classes with multiple inheritance. I've also made changes in preparation for inclusion of asCRestore code. Now the byte code generated by the compiler is completely independent of other modules, which means that the order in which the modules are loaded is no longer important. Global properties registered by the application are also now referenced by index rather than by the direct memory address registered. This all means that if you need to store and load compiled byte code you can do so already, you only have to include the asCRestore class, that Dennis Bollyn contributed to the project. Regards, Andreas Jönsson Author of AngelScript [Edited by - WitchLord on August 11, 2004 7:31:16 PM]

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
I'm not sure if you've seen this already, but I recently came across it and found it very interesting. I discusses a lot of the methods of how different compilers handle pointers, etc. I'm not sure how useful it will be to AS, but it's interesting none the less.

Member Function Pointers And The Fastest Possible C++ Delegates
I already read it a couple of months ago (pretty much as soon as it was published), but thanks for the link anyway.

I agree that it is very interesting. I based the latest support for virtual methods and multiple inheritance on that article. The templates I use to generalize the method pointers on MSVC are pretty much the same as the ones found in the article.

The article will be very helpful to anyone who wishes to add support for other compilers.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I just uploaded WIP 2, which adds support for switch-case statements and fixes a bug introduced in WIP 1.

Thanks goes to Jeff White for the contribution with the switch-case implementation (I ended up changing most of it, but your contribution served as inspiration).

Thanks to Lennart Denninger for discovering the bug with global variables in WIP 1.

Regards,
Andreas Jönsson

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

The switch case implementation isn't actually working yet (did some more tests today). I've already fixed it for WIP 3 that will be uploaded within a day or two.

I've also added support for registering the unary minus operator (negate). This was the last important operator that was missing. Addition of further operators will have pretty low priority from now on.

If I can finish the optimization for the switch case in time, I will release 1.8.2 as BETA instead of WIP. Which would then allow me to start working on 1.9.0.

Just thought I'd let you all know the status of the development.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement