[fpc-devel] Why: "Can't take the address of constant expressions" here?

wkitty42 at windstream.net wkitty42 at windstream.net
Sat Jan 14 12:10:54 CET 2023


On 1/13/23 5:35 AM, Bart via fpc-devel wrote:
> On Fri, Jan 13, 2023 at 11:13 AM wkitty42--- via fpc-devel
> <fpc-devel at lists.freepascal.org> wrote:
>>
> 
>>> First of all, adding a 'end;" for the "with" compiles under Linux.
>>> That's because widestring=unicodestring on Linux.
>>
>> i'm a little surprised there is no "mismatched begin/end" error with the caret
>> pointing to the 2nd begin...
>>
>> --
> 
> That's a copy/paste error.by me.
> The original code had about 10 more function calls and then a closing
> end for the "with WideStringManager do begin "


oh! that would explain it :lol:


-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list where it belongs!*


More information about the fpc-devel mailing list