Closed controlflow closed 1 year ago
They do allocate (invoke copy constructor) for record classes and anonymous objects.
record R; _ = new R() with { }; // alloc
Copy constructor can be custom, but it always creates the new instance. Clone<> method can be custom in the future.
Clone<>
Implemented
They do allocate (invoke copy constructor) for record classes and anonymous objects.
Copy constructor can be custom, but it always creates the new instance.
Clone<>
method can be custom in the future.