Jump to content
Sign in to follow this  
dummzeuch

appending to a dynamic array

Recommended Posts

12 hours ago, Rudy Velthuis said:

Actually, High(x) is not always implemented as Pred(Length(x)). In routines with open array parameters, Length(x) is actually implemented as Succ(High(x)), because the High value is passed, not the Length value.

 

But you are right about checking for nil and caching the value.

The subject is dynamic arrays and not open arrays. 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×