Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-05

Patch to implement vararrays of widestrings

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joost van der Sluis

Hi all,

attached is a patch that implements widestrings in vararrays. It works on linux/i386 but i'm not sure if it's valid though. Especially on windows...

Could you guys have a look?

Oh, and it's leaking memory (or refcounts, depending on your point of view) but that's a bug in widestrings in general. The following leaks already (in DefaultANSI2WideMove)

var w : widestring;
    s : ansistring;
begin
  s := 'hoi';
  w := s;
end;

regards,
Joost.

Reply by email