Page MenuHomeFeedback Tracker

Add a way to get the typename of the template of an array
New, UrgentPublic

Description

Hello,

Currently, it's not possible to get the typename of the class put inside the array.

Tested with this :

TIntArray test = new TIntArray;

Message(null, "test : " + test);
Message(null, "test.Type() : " + test.Type());
Message(null, "test.GetVariableCount() : " + test.Type().GetVariableCount());

Printing correctly :

test.Type() : array<int>

But the GetVariableCount() is equal to 0, so it's not possible to get the typename of the current class used inside the array.

This is linked to the new json API, because we can't instantiate object used inside array without this

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

NiiRoZz created this task.Jun 5 2020, 11:08 PM
Unknown Object (User) added a subscriber: Unknown Object (User).Jun 5 2020, 11:14 PM
NiiRoZz changed Category from General to Scripting.Jun 6 2020, 12:24 PM