Dynamyc Arrays NIL assignment
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Dynamyc arrays can be assigned to nil in Delphi. It is equal to execute SetLength(array, 0).
But also you must have a chance to check against nil. So "if array = nil" is equal to "if Length(array) = 0".
At the moment FPC does not understand if array=nil. See the code.
Additional information:
Reporter: Yakov Sudeikin
EMail: yashka at exebook dot com
Mantis conversion info:
- Mantis ID: 4313
- OS: All
- Version: 1.1.0
- Fixed in version: 1.1.0