Jump to content

  • Log In with Google      Sign In   
  • Create Account

Andreas Jonsson

Member Since 26 Mar 2000
Offline Last Active Today, 10:31 AM

Posts I've Made

In Topic: The compiler crashes

26 May 2016 - 12:08 PM

I don't feel that this translation of tab chars to columns belongs in the compiler layer. One simple reason is that the compiler has no way of knowing if is compiling the original code or some code that has been pre-processed (for example to expand macros, etc).

 

I'll consider adding this translation to the CBuilder add-on though.


In Topic: AngelScript array indexing null pointer check

26 May 2016 - 12:03 PM

This has already been fixed in the latest 2.31.1 WIP version that you can from the SVN repository.


In Topic: The compiler crashes

19 May 2016 - 06:20 PM

As I suspected. This problem had already been fixed in the latest WIP version.

 

 

Thanks for the compliments on the library. Let me know if you encounter any other problems, or have any suggestions for how to improve the library further.

 

Regards,

Andreas


In Topic: The compiler crashes

17 May 2016 - 07:19 AM

Are you using the latest WIP version from the SVN? I've already fixed a bug like this in the latest WIP version. 

 

 

Anyway, I'll make sure to test this too with the WIP to make sure it truly is fixed.

 

 

Regards,

Andreas


In Topic: AS and determinism

14 May 2016 - 11:33 AM

There is currently no pre-existing option to disable floats in the script language, but you can easily do that with a minor customization to the library by finding and disabling the tokens that represents the floats. 

 

The file as_tokendef.h holds the definitions of the tokens that the script language understands. You'll want to disable the tokens ttFloatConstant, ttDoubleConstant, ttFloat, and ttDouble. Doing that and then compiling the library you'll easily find where they are referred from and can disable the code that uses those too.

 

Another option, that might be even simpler, is to change the method asCBuilder::CreateDataTypeFromNode to give an error if the script attempts to declare any variables of the types float or double. That combined with the fact that you'll not register any application interface that accepts floats will effectively disable the use of floats in the scripts without a lot of changes in the library code.

 

I may even consider adding the latter as a dynamic option through an engine property.


PARTNERS