Page MenuHomeFeedback Tracker

Spawn Classes and a syntax problem
Assigned, NormalPublic

Description

During development I came across a situation that I would like to use through Template, example:

class BaseParamTest
{
		void BaseParamTest()
		{
		}
}
class Param3Test<Class T1, Class T2, Class T3> extends BaseParamTest
{
		T1 param1;
		T2 param2;
		T3 param3;
		string name_param1;
		string name_param2;
		string name_param3;

		void Param3Test(string T1_name, string T2_name, string T3_name)
		{
				name_param1 = T1_name;
				name_param2 = T2_name;
				name_param3 = T3_name;

				param1 = new T1(any params);
				param1 = new T2(any params);
				param1 = new T3(any params);
		}
}

This will result in an error of bad type T1, T2, T3

But why? It would be nice to add an exception for template classes.
An error can be thrown when creating a class in CrashLog with the name "not enough parameters on ... line", but not prohibit reproducing such constructions in the engine.

2:

AnyTypeName.Spawn();

we can't pass anything to the constructor!

Why don't you make a function:
Spawn(void param1, void param2, void param3, void param4, void param5, void param.....)

Which would create a class with the passed parameters

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

DrZiLLo created this task.Sat, Mar 29, 12:35 PM
Geez changed the task status from New to Assigned.Tue, Apr 1, 12:13 PM