Sign in Join

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

Mailing lists / fpc-devel / 2009-09

Is tkWString deprecated?

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Continuing with the RTTI return types for various property types. In FPC 2.2.5, WideString properties were returned as tkWString types. Now with FPC 2.3.1, those are returned as tkUString.

Does that mean tkWString is now deprecated? In that case, why is it not removed from the enum list?

If tkWString is not deprecated, when will WideString properties be returned as tkWString? What conditions must be met?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Florian Klaempfl
to Graeme Geldenhuys
Show quoted text 12 lines
Hi, Continuing with the RTTI return types for various property types. In FPC 2.2.5, WideString properties were returned as tkWString types. Now with FPC 2.3.1, those are returned as tkUString. Does that mean tkWString is now deprecated? In that case, why is it not removed from the enum list? If tkWString is not deprecated, when will WideString properties be returned as tkWString? What conditions must be met?

Using the WideString type on Windows. On Non-Windows WideString = UnicodeString.

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: Continuing with the RTTI return types for various property types. In FPC 2.2.5, …

I forgot to mention....

Please note that tiOPF and our company code does not use WideString in general. So cwstring unit is never in any uses clause.

The tiOPF unit tests have some helper RTTI functions that extract various bits of information. Those unit tests test for all supported types in Object Pascal, which in this case includes WideString types. And that is where I am detecting these errors. RTTI tests are now down to 2 failures only. :-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Florian Klaempfl: Using the WideString type on Windows. On Non-Windows WideString = UnicodeString.

Florian Klaempfl het geskryf:

Using the WideString type on Windows. On Non-Windows WideString = UnicodeString.

Thanks. That complicates the unit tests a bit... or at least will be obfuscated by IFDEF's a lot (something I hate in code).

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email