Sign in to follow this  
loboWu

scriptany addon call wrong constructor in 2.31.0

Recommended Posts

In the past years, I use 2.29.0 for a long time.

But when I upgrade to 2.31.0, I found something strange with scriptany class

try the following codes(which are correct in 2.29.0)

 

void main()
{
    string testh = "hello";
    string output;
    any data;
    data.store(testh);

    any temp = data;            
    temp.retrieve(output);      // the retrieve will return false
}

 

but the following codes

 

void main2()
{
    string testh = "hello";
    string output;
    any data;
    data.store(testh);

    any temp;

    temp = data;            
    temp.retrieve(output);      // the output will get the right value "hello"
}

 

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