[fpc-devel] Type Compatibility: dynarray <=> Pointer
    Martok 
    listbox at martoks-place.de
       
    Tue Apr 17 13:24:38 CEST 2018
    
    
  
Am 17.04.2018 um 11:52 schrieb Stefan Glienke:
> FWIW this has been changed in Delphi 10.2 and does not compile anymore but gives:
> E2010 Incompatible types: 'Dynamic array' and 'Pointer'
That is what I would have expected.
Could you please test what the following does in D10.2?
var arr: array of byte;
begin
  arr:= Pointer(0);
end.
What I'd like to know: do they check the "nil" literal, or pointers of value nil?
-- 
Regards,
Martok
    
    
More information about the fpc-devel
mailing list