[Lazarus] Questions about SetLength

Agranov, Gennady Gennady.Agranov at emc.com
Fri Sep 12 17:51:05 CEST 2014


Maybe it is not a correct list, but I am going to ask my question anyway :)

Is there a penalty for calling SetLength if array already has the length we need?

And if there is a penalty - is there a way to write "generic" function SmartSetLength(array,length) that will only call SetLength if necessary?

I hope other people find these questions interesting enough :)


More information about the Lazarus mailing list