An array of a user defined type with a constructor

BlitzMax Forums/BlitzMax Beginners Area/An array of a user defined type with a constructor

I've probably just missed it but, say you setup a type with a static method constructor eg

Type TTest
	Field x:Int
	
	Function Create:TTest(x:Int)
		Test:TTest=New TTest
		Test.x=x
		
		Return Test
	End Function
End Type


I know you can go:

Local testArray:TTest[]
testArray=New TTest[10]

Followed by a loop calling the constructer but that seems pretty wasteful on a few levels.

Is there any way to set it up like:

Local testArray:TTest[]
testArray=New TTest.[10].Create(3)

...but obviously something that compiles.

I've checked the docs but can't seem to find it.