Overloading operator “=” for anonymous access types?
问题 I am working my way through Barnes' excellent Ada book. This is a code sample for deep comparison of linked lists from section 11.7: type Cell is record Next: access Cell; Value: Integer; end record; function "=" (L, R: access Cell) return Boolean is begin if L = null or R = null then -- universal = return L = R; -- universal = (Line A) elsif L.Value = R.Value then return L.Next = R.Next; -- recurses OK (Line B) else return False; end if; end "="; I can't seem to wrap my head around why in