Skip to content

"Array has no bound" #8

@User4martin

Description

@User4martin

Run to write.

(pdr) p r
R = array of TObject (Length=5) = [nil, nil, nil, nil, nil]
(pdr) p r[1]
[ERROR] Array has no bounds info

r[1] should return one entry?
same error for slices

program project1;
{$Mode objfpc}
type
//  TObj = record
//  end;
  ta = array of TObject;
var
  r: Ta;

begin
  SetLength(r, 5);
write;
end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions