On 17.12.2011 16:09, Bart wrote:
On 12/17/11, Sven Barth<[email protected]>  wrote:

The error appears only if you try to write(ln)/read(ln) such a record,
because this simply can never work and is also a source of errors as
this thread proves. The same error would appear if you'd have a record
with a "AnsiString" (or "UnicodeString") field instead of the generic
"String".

For the sake of argument: if I wanted, willinlgy, to write such a
record to (say) a logfile, for debugging purposes, the new fpc won't
let me?
Is that Delphi compatible?

I don't know whether it's Delphi compatible, but this error was already there if you've used AnsiString, so it is a logical extension that this error also appears if String is an alias to AnsiString.

And yes, the compiler won't let you write such a record (or let you even define a "file of" type of this record).

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to