Jump to content

  • Log In with Google      Sign In   
  • Create Account

Andreas Jonsson

Member Since 26 Mar 2000
Offline Last Active Yesterday, 10:45 PM

Posts I've Made

In Topic: Importing all functions of a module

Yesterday, 03:43 PM

If you just want to include the code from another script file, then what chasester123 should work just fine.


If you on the other hand wish to compile multiple modules, and then allow them to share code then it is currently only possible to import functions individually. Classes can be shared across modules if they are declared as shared.


I have plans to make improvements to make it easier for multiple modules to share code, but this is likely going to take a while before it gets implemented.

In Topic: Problem with a function of C++ object which returns a delegate to the AngelSc...

Yesterday, 03:36 PM

Is this with version 2.31.0? 


Have you tried the latest WIP version? Several bugs related to function pointers crept into version 2.31.0, but all of them have been fixed in the WIP version already (including a bug that prevented returning function pointers from registered functions)

In Topic: Compiling angelscript on ppc64

Yesterday, 03:31 PM

Thanks. I've checked in these fixes in revision 2330.

In Topic: Compiling angelscript on ppc64

18 June 2016 - 05:59 PM

I had made a mistake in the Get function for retrieving a bool when the stored value was an int. To determine the size of the stored value I used typeId rather than m_typeId. 


With the fix in revision 2329 it should be working.

In Topic: Deprecation warning for application-registered entities

15 June 2016 - 01:21 PM

Hmm, I can't think of an easy way for this. You could use the JIT compiler interface and go through the bytecode to see if any of the deprecated entitites are being accessed, but it would probably be much easier to modify the library to print a warning while compiling the code if the deprecated entity is accessed. 


I'll add this to my to-do list as this sounds like the kind of feature that the core library would have to have.