[Lazarus] can't take the address of constant expressions
Roberto Padovani
padovani.r at gmail.com
Fri Feb 5 16:34:23 CET 2010
Ok, thanks!
I'll patch the files on my PC, but maintainers of the components "Plot
Panel" and "CmdLine" should be alerted on this.
Roberto
2010/2/5 Flávio Etrusco <flavio.etrusco at gmail.com>:
> That's it.
> That code used to compile with FPC 2.2, but doesn't with 2.4. See:
> http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields
> In this case, simply change the code to "Inc(FInputPos, UTF8Length(s));".
>
> Best regards,
> Flávio
>
> On Fri, Feb 5, 2010 at 12:07 PM, Roberto Padovani <padovani.r at gmail.com> wrote:
>> 2010/2/5 Flávio Etrusco <flavio.etrusco at gmail.com>:
>>> Err, it would useful for you to post the source code in question. I
>>> guess these are errors are caused by object properties?...
>>>
>>
>> I did not post them because the files are available on the Lazarus CCR.
>> However here is the error in the package "cmdline":
>>
>> Offending instruction: Inc(InputPos, UTF8Length(s));
>>
>> where the parameters are defined as:
>> s: WideString; // a local variable in the method
>> property InputPos: integer Read FInputPos; // a class
>> property with the correspondig private FInputPos: integer;
>>
>> Roberto
>>
>> --
>> _______________________________________________
>> 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