• Advertisement
Sign in to follow this  

varible names during construction

This topic is 4709 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

Is there an easy way to get variable names during construction? So that in my construction behavior I can have access to the string name of the variable being created in the AS script? ~Scott

Share this post


Link to post
Share on other sites
Advertisement
I'm not exactly sure that I understand what you really want.

But here's what I think. Let's say you have a script like this:


void test()
{
Object myObject();
}


You want to be able to access the name of the variable myObject, from within the constructor? Is that it?

Well, currently AngelScript doesn't store the variable names for local variables, only for global variables. But I have plans to improve the debugging capabilities for AngelScript by allowing the application to query variables, including name, type, scope, and value. Once that is implemented you should be able to access the variable name from within the constructor.

Regards,
Andreas

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement