[Lazarus] SEGFAULT: difference between pointer and dynarray?

Flávio Etrusco flavio.etrusco at gmail.com
Sat Dec 29 08:13:19 CET 2012


Your code sample doesn't have a declaration for PluaL_Reg (and you
don't use the TluaLReg type). Was it a simple copy'n'paste error or is
it declared by the Lua wrapper?

On Sat, Dec 29, 2012 at 4:00 AM, xrfang <xrfang at gmail.com> wrote:
> Sorry, we are talking about same thing. In my program I am using dynamic
> array, NOT static, but the assembly is same. In leledumbo's example, the
> assembly is differnt.
>
> 在 六, 12月 29, 2012 at 2:55 下午,Hans-Peter Diettrich <DrDiettrich1 at aol.com> 写道:
>
> leledumbo schrieb:
>>> The Assembler shows that @lib and @lib[0] are exactly same thing.
>
> That's true for static arrays.
>
>> The following program shows that they are NOT the same
>
> That's true for dynamic (managed) arrays.
>
> You're talking about different array types.
>
> DoDi
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>




More information about the Lazarus mailing list