Page MenuHomeFeedback Tracker

TupleN<ref T> not actually resulting in a strong ref member
Assigned, NormalPublic

Description

When using the code below the script editor already warns of it not being a strong ref. However, the template param includes a ref. And when I look at it in the debugger it does show as Tuple1<@Bacon>. But the actual class member is only a weak reference. Can this be fixed so that we can use Tuple to hold strong references?

class Bacon
{
};

Tuple1<ref Bacon> holder(null);
{
    holder.param1 = new Bacon();
    Print(holder.param1);
}
Print(holder.param1);

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.May 20 2023, 4:05 PM
Geez changed the task status from New to Assigned.May 23 2023, 12:32 PM