Defining objects within a procedure
Posted: Thu May 26, 2005 10:10 pm
In 5.7 I am not able to define objects like Matrix & Vector within procedures, at least not directly (I never tried in earlier versions).
Am I doing something wrong? Or, is that just considered poor coding form?
I noticed that I am able to define them indirectly by using execute(str), where str = "m = new Matrix(2,10)" for example.
Am I doing something wrong? Or, is that just considered poor coding form?
I noticed that I am able to define them indirectly by using execute(str), where str = "m = new Matrix(2,10)" for example.