Am 15.01.2014 17:19 schrieb "Michael Schnell" <mschn...@lumino.de>:
>
> DXE Strings again :-) ,
>
> What is the relation between Generic Functions and (static) DXE String
encoding schemes ?
>
> Can you (e.g.) do a (silly) Generic Function that takes two strings of
any (but identical) encoding type, concatenates them and outputs the result
in the same (static) encoding type, so that you can call the beast to
handle the encoding type specified by the caller from "outside" (e.g. in
another unit) without unnecessary conversions.

Why would you want such a function? If the two strings have the same
encoding and the destination is a string variable of the same static
encoding then there won't be any conversions anyway.

> Could a single "Generic TStringlist" be done that way to allow for
storing and retrieving Strings of any - but ubiquitous - (static) encoding
Type ?

And then? If you want to use them in e.g. a class you need to pick a
specialization and thus a code page at compile time.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to