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 =
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
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