Sign in to follow this  
Mildanach

Registering inheritance

Recommended Posts

Hello all, I've got a question as in subject - how to notify AS engine that registered class inherits from another one? I'd like to call function f(Base@) in script and pass an object of derived type.

Share this post


Link to post
Share on other sites
This feature hasn't been implemented yet. Maybe I'll be able to implement it for the next version (not the one currently in development but the one after that).

Until then you can register a function that takes a handle to the derived object and returns a handle to the base object.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this