[fpc-devel] 0026080: Access by index to dynamic array may be failed

Martin Frb lazarus at mfriebe.de
Mon Apr 28 03:22:23 CEST 2014


Please forget the below.  I found the error in my thinking.

On 28/04/2014 02:12, Martin Frb wrote:
> http://bugs.freepascal.org/view.php?id=26080
>
> Reading this bug, I came to an interesting question. (Purely out of 
> academic interest / not really interested in the final decision to the 
> bug)
>
...
> But with the property?
>
> In the bug the statement is about evaluation order. And there is no 
> guarantee to that. But that is not what is asked for. It is about 
> behaviour for the property being exactly as if it was a getter. 
> (unless you can make the getter to fail too, then both will behave the 
> same)

The getter property does not return the entire array (to which an index 
is applied), but it returns an element.
Or the other way round, the field property does not take an index.



More information about the fpc-devel mailing list