Gedcom.pm icon indicating copy to clipboard operation
Gedcom.pm copied to clipboard

ancestors() can loop

Open nigelhorne opened this issue 9 years ago • 1 comments

I had a broken Gedcom where a person was their own parent. This caused a loop in G::I::ancestors(). It would have saved me a lot of time finding my mistake if the ancestors() method were to error if a person is their own ancestor.

nigelhorne avatar Jan 02 '17 03:01 nigelhorne

I think you're correct that we need to do something there. I don't think throwing an error is correct, but looping is certainly wrong.

pjcj avatar Sep 15 '17 22:09 pjcj