DMap UsesPairs incorrect?
Brought to you by:
rossjudson
AFAIK DMap uses pairs. But, UsesPairs reporrts not
using pairs. This results in a non-working DMap.CloneTo
(because of assert).
function DMap.usesPairs : Boolean;
begin
result := false;
end;
UsesPairs should return True (I think)
function DMap.usesPairs : Boolean;
begin
result := true;
end;
Logged In: NO
In addition, the assertion in DInternalMap.CloneTo
assert(newContainer.usesPairs)
seems to be incorrect, as DInternalMap is a base class for
both DSet and DMap.
I would suggest changing it to
assert(newContainer.usesPairs=usesPairs)
stephan@stack.nospamplease.nl