Is this scripting line bad for memory?

class Talk{
var text:String = “hello”;
}

var talk:Talk = new Talk();

function Start(){
	talk.text = new Talk().text; //This line right here, where I make a new Talk() instead of making it static.
}

Shouldn’t be, unless you have it set up as an infinite loop.

Is a string the only thing the Talk class is going to contain? It’s not really needed if that is the case.

That being said I am just being nit picky. This block of code will not cause the slightest of performance hit.

Scripts most the time are not going to cause performance issues. Rendering is where most people run into problems.

Regards,