On Sunday 04 February 2007 10.57, Florian Klaempfl wrote:
> peter green schrieb:
> > if my understanding is correct this should allow all the widestrings
> > stuff to be moved to the library and people to implement thier own
> > string types as required (for example maybe a widestring counterpart
> > for some system that is similar to com)
>
> What's wrong with
>
> type
>    tmywidestring = type array of widechar;
>
> ?

- Null based index.
- mywidestring:= 'abcde'; not possible.
- No terminating null character.
- Lower performance due to nulling memory by setlength.
- No unique check by assigning to character.

Martin
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to