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

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -