Re: [fpc-pascal] Initialization of constant record member of pointer type

2020-12-01 Thread Ladislav Karrach via fpc-pascal
Because MyConst1 is not an *untyped* constant. Only untyped constants can be used in constant expressions (a pointer to something can be considered an untyped constant). The following might work though I did not test it: === code begin === const    MyStr = 'abc'    MyConst1: AnsiString =

Re: [fpc-pascal] INVALID_SOCKET constant not defined for Linux

2017-03-28 Thread Ladislav Karrach
This technique is used in fcl-net which should be cross-platform. So I am right, when I say that also in Linux invald socket = -1 (in other words: in case of error syscall() returns always -1) Becuase in other place I see another test "if socket < 0 then ..." (which may mean that any negative v

Re: [fpc-pascal] Boring problem when I try to create a database using SQLdb (again)

2015-05-27 Thread Ladislav Karrach
Dňa 16.5.2015 o 19:19 silvioprog napísal(a): On Sat, May 16, 2015 at 1:51 PM, Michael Van Canneyt mailto:mich...@freepascal.org>> wrote: On Sat, 16 May 2015, silvioprog wrote: [...] Set the stoUseImplicit option on the transaction: VCon.Transaction.options:=[stoUseImplici