[fpc-devel] Array of char

Florian Klämpfl florian at freepascal.org
Wed Feb 25 18:50:47 CET 2015

Am 25.02.2015 um 18:40 schrieb Jonas Maebe:
> On 25/02/15 18:14, thaddy at thaddy.com wrote:
>> No, it's about the K&R compatibility.
>> That's all, nothing more, nothing less.
>> It has always been there for an array of char (old c style, now
>> ansichar) ) in Delphi.
> A regular array of char can also be converted into a string in FPC.
> That's not a "raw pointer typecast" though, but an actual conversion
> whereby a new string "instance" is created based on the contents of the
> array.
> Maybe we have to do that too for dynamic arrays. Can you print the value
> of the array pointer and the typecasted string pointer? If they are
> different, then that's something else and we indeed probably also have
> to insert a type conversion.

This is also what I suspected but in this case the meta data would be available?

More information about the fpc-devel mailing list