[fpc-devel] new string - question on usage
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Oct 12 10:23:34 CEST 2011
On 12 Oct 2011, at 10:13, Jonas Maebe wrote:
> That would indeed require some ifdefs to keep the code compilable
> also by Delphi. No solution will be completely free.
Well, an alternative could be to add a global directive such as
{$modeswitch duplicate_all_string_based_code}
whereby anything in that unit is first parsed as if the "string" types
were a generic type parameter, and the then compiler automatically
generates specializations for unicodestring and ansistring variants
for all declarations/implementations involving at least one string-
type entity.
Jonas
More information about the fpc-devel
mailing list