delphi - When is Length evaluated for a static array? -


this question has answer here:

type   tmyarray = array [0..255] of integer;  var   arr: tmyarray;  ....  writeln(length(arr)); 

when length() evaluated in context, when passed static array? evaluated @ runtime, or @ compile time?

when length() evaluated in context, when passed static array?

it evaluated @ compile time, , therefore carries no runtime overhead.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -