On Sunday 04 February 2007 01.01, peter green wrote: > currently there is some demand for a fast widestring type on windows and i > suspect there will be requirements for more string types in the future. > > So i make a proposal for a new syntax that will allow string types to be > created easilly in libraries or user code. > > my proposal is a statement like > > type > tmystring=string(elementtype,allocator,deallocator,copier,uniquer); > > the allocator,deallocator,copier and uniquer would generally be inline > functions > This is a very good idea. There should be two additional functions, one to set string constants (literals) in the current locale encoding and one in UTF-8 encoding if the compiler runs with -Fcutf8. MSEgui is completely done with widestrings, it suffers from the switch to not reference counted widestrings on windows. Also wanted: a possibility to have wide-resourcestrings.
Martin _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel