3 ms·
> It limits functions to never returning newly constructed objects, which really limits the expressiveness of APIs both in the standard library and in custom co
by clouddrover 10y ago
> It limits functions to never returning newly constructed objects, which really limits the expressiveness of APIs both in the standard library and in custom code.
How? Set the return type of the function to be the object type you want, then result := TYourObjectType.Create; and you'll return a newly constructed object.