[fpc-pascal] Re: String type compatibility
Noah Silva
shiruba at galapagossoftware.com
Wed Apr 3 14:25:08 CEST 2013
Hi,
If you want a 16bit version, then probably WideString? UTF8String is better
for many purposes though. (Though in FPC is is currently just an alias to
AnsiString).
Thank you,
Noah Silva
2013/4/3 Mark Morgan Lloyd <markMLl.fpc-pascal at telemetry.co.uk>
> leledumbo wrote:
>
>> BTW, recently there are many discussions about language features, now I
>>>
>> would like to ask one question, why the following is not supported in
>> pascal:
>>
>> procedure SomeThing(AParam: array[0..10] of Integer);
>>
>> or
>> procedure SomeThing(Aparam: string[10]);
>>
>> But you have to define a custom type first?
>>
>> Delphi compatibility and something else (should be documented on the wiki,
>> but I forgot on which release).
>>
>
> I wonder if I could ask a related question. I was looking at some parser
> code yesterday that I wrote years ago, and that still compiles with TP5,
> TopSpeed and so on. It's got a couple of underlying string[255]
> declarations: is there a 16-bit Unicode equivalent which uses this syntax?
>
> --
> Mark Morgan Lloyd
> markMLl .AT. telemetry.co .DOT. uk
>
> [Opinions above are the author's, not those of his employers or colleagues]
>
> ______________________________**_________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130403/291f9aeb/attachment.html>
More information about the fpc-pascal
mailing list