Sign in to follow this  

Script array code for managing objects

This topic is 811 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Would it be possible to refactor the script array code that handles management of object instances so that it can be easily used by other classes?

I'm trying to write a linked list class, and i have to copy over a lot of code from the array class to do the same kind of management.

 

The array variables that keep track of the object type, its size and subtype id are all basically reused, so that could all go into a class.

Edited by Solokiller

Share this post


Link to post
Share on other sites

Indeed i have, at the time it was released i was unsure as to whether our project could use them, seeing as we still support VS2010, which does not fully implement C++11.

For now, we will use our own list class, but once we have upgraded to VS2015 i will replace it with Sami's version. In any case, it's good exercise to get a fully functioning list working.

Share this post


Link to post
Share on other sites

This topic is 811 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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