[fpc-pascal] Re: two questions about dynamic array

Howard Page-Clark hdpc at talktalk.net
Wed Mar 13 12:32:43 CET 2013


On 13/03/13 9:50, Mattias Gaertner wrote:
> On Wed, 13 Mar 2013 09:35:43 +0000
> Howard Page-Clark <hdpc at talktalk.net> wrote:
>
>> On 12/03/13 8:30, Xiangrong Fang wrote:
>>> TMyClass = class
>>>       myarray: array[0..100] of Integer;
>>> end;
>> You could answer such questions yourself:
>
> Not with this simple test.
>
>
>> [...]
>>     my:=TMyClass.Create;
>>     try
>>      writeln('After creation the value of my.myarray is
>> ',PtrUInt(my.myarray));

Could you show a more complex test that would give a satisfactory 
answer to the OP's questions?

Howard




More information about the fpc-pascal mailing list