On 11.12.2015 13:12, Mattias Gaertner wrote:
On Fri, 11 Dec 2015 08:05:12 +0100
Sven Barth <[email protected]> wrote:

[...]
UTF8Delete(AnsiString(Pointer(s)),1,1);

While the typecast itself would probably work I strongly advice against it
since you're relying on implementation details.

True.

Also I doubt that you can do this for var parameters...

FPC 3.0 eats it without a hint.

I just checked the generated code and it's the same for both with and without Pointer. The question is whether this is intended to work. If I were you I definitely wouldn't rely on that until this question is answered (and then you can probably use it without the Pointer typecast...)

Regards,
Sven


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

Reply via email to