On 19 Jan 2010, at 15:14, Marco van de Voort wrote:
Hmm, under delphi at least, it is cheaper to do
var pstart,pend : PSomeType;
if length(sometypedynarray)>0 then
begin
pstart:=...@sometypedynarray[0];
peind :=...@sometypedynarray[length(sometypedynarray)-1];
while (pstart<=peind)
In our previous episode, Jonas Maebe said:
> I also don't see any advantage to using a pointer instead of a dynamic
> array directly. It will not be faster in any way, since there are no
> uniqueness checks for dynamic arrays. In fact, it will probably be
> slower, since you now have two vari
On 19 Jan 2010, at 14:39, Roland Turcan wrote:
<<< 19.01.2010 13:10 - Jonas Maebe "jonas.ma...@elis.ugent.be" >>>
JM> Oops, only now I see he was trying to index a pointer like an
array.
JM> And even in FPC I would very strongly recommend against
typecasting a
JM> dynamic array to a pointe
<<< 19.01.2010 13:10 - Jonas Maebe "jonas.ma...@elis.ugent.be" >>>
JM> On 19 Jan 2010, at 12:57, Michael Van Canneyt wrote:
>> It should not compile in Delphi mode.
>> Array syntax is not supported by Delphi.
JM> Oops, only now I see he was trying to index a pointer like an array.
JM> And even
On 19 Jan 2010, at 12:57, Michael Van Canneyt wrote:
It should not compile in Delphi mode.
Array syntax is not supported by Delphi.
Oops, only now I see he was trying to index a pointer like an array.
And even in FPC I would very strongly recommend against typecasting a
dynamic array to a
On Tue, 19 Jan 2010, Roland Turcan wrote:
<<< 19.01.2010 11:39 - Jonas Maebe "jonas.ma...@elis.ugent.be" >>>
JM> On 19 Jan 2010, at 11:27, Jonas Maebe wrote:
On 19 Jan 2010, at 11:14, Roland Turcan wrote:
ShowMessage (IntToStr (MyItems[0]));
I think this should work:
ShowMessage (IntTo
<<< 19.01.2010 11:39 - Jonas Maebe "jonas.ma...@elis.ugent.be" >>>
JM> On 19 Jan 2010, at 11:27, Jonas Maebe wrote:
>> On 19 Jan 2010, at 11:14, Roland Turcan wrote:
>>
>>> ShowMessage (IntToStr (MyItems[0]));
>>
>> I think this should work:
>> ShowMessage (IntToStr (MyItems[0]()));
>>
>> Please
On 19 Jan 2010, at 11:27, Jonas Maebe wrote:
On 19 Jan 2010, at 11:14, Roland Turcan wrote:
ShowMessage (IntToStr (MyItems[0]));
I think this should work:
ShowMessage (IntToStr (MyItems[0]()));
Please also file a bug report with a compilable example (which does
not depend on Lazarus) th
On 19 Jan 2010, at 11:14, Roland Turcan wrote:
I use Delphi style of programing in Lazarus to keep a compatibility
with Kylix and therefore I want to get this code which is valid of
Freepascal's ObjectPascal, but in {$MODE Delphi} it doesn't accept
calling of "MyItems[index]" and writes "Array