[fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread LacaK
Hi *, In current Delphi is String synonym for base type UnicodeString UTF-16 AFAIU ATM in FPC is String synonym for AnsiString (as in previos versions of Delphi) Are there any plans to change meaning of String type ? (like Delphi to UnicodeString , or UTF8String?) Are there any plans to

Re: [fpc-devel] Nested Classes used as Namespace Question

2011-01-10 Thread Sven Barth
Am 10.01.2011 05:15, schrieb Paul Ishenin: 10.01.2011 1:47, Andrew Brunner wrote: Type NS_APP=class const const1=2; const3=5; type NS_SPACE1=class type Properties=(Name,Value); TMyRecord=record ID : integer; Name:string; Value:string; end; end; NS_SPACE2=class type Properties=(Name,Value); //

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Michael Schnell
On 01/10/2011 09:12 AM, LacaK wrote: In current Delphi is String synonym for base type UnicodeString UTF-16 AFAIK, in current Delphi (which I don't have) a String is a variable that can contain dynamically coded informations (such as locally coded 8-Bit ANSI, UTF-8, UTF-16, ...) and - of

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread LacaK
AFAIK, in current Delphi (which I don't have) a String is a variable that can contain dynamically coded informations (such as locally coded 8-Bit ANSI, UTF-8, UTF-16, ...) and - of course - know which code it holds. I understand By default, variables declared as type String are

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Jonas Maebe
On 10 Jan 2011, at 09:12, LacaK wrote: In current Delphi is String synonym for base type UnicodeString UTF-16 AFAIU ATM in FPC is String synonym for AnsiString (as in previos versions of Delphi) Are there any plans to change meaning of String type ? (like Delphi to UnicodeString , or

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: In current Delphi is String synonym for base type UnicodeString UTF-16 AFAIU ATM in FPC is String synonym for AnsiString (as in previos versions of Delphi) Are there any plans to change meaning of String type ? (like Delphi to UnicodeString ,

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Jonas Maebe
On 10 Jan 2011, at 13:33, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: In current Delphi is String synonym for base type UnicodeString UTF-16 AFAIU ATM in FPC is String synonym for AnsiString (as in previos versions of Delphi) Are there any plans to change meaning of

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: If/when this is done, it will only be with a compiler switch or directive. ( That won't be enough, since that would not change the relevant units and classes to such type. (e.g. tstringlist would remain defined ansistring) If it's

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Jonas Maebe
On 10 Jan 2011, at 13:57, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: If/when this is done, it will only be with a compiler switch or directive. ( That won't be enough, since that would not change the relevant units and classes to such type. (e.g. tstringlist would

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: If it's a D2009-style ansistring, does that matter? A lot of conversion, since it will use ansistring(0) so reading/ writing ansistring(cp_utf8) will force conversions. (0 means system encoding, $ means never convert) Why should a

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Hans-Peter Diettrich
Jonas Maebe schrieb: In current Delphi is String synonym for base type UnicodeString UTF-16 AFAIU ATM in FPC is String synonym for AnsiString (as in previos versions of Delphi) Are there any plans to change meaning of String type ? (like Delphi to UnicodeString , or UTF8String?) If/when

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Jonas Maebe
On 10 Jan 2011, at 16:27, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: Why should a tstringlist force ansistring(0)? I mean that if you locally (for your units) set string=utf8string, TStringList still would be ansistring(0) or whatever the default becomes. I

Re: [fpc-devel] String and UnicodeString and UTF8String

2011-01-10 Thread Martin Schreiber
On Monday, 10. January 2011 16.27:19 Marco van de Voort wrote: And there are three such cases - normal FPC and Delph 2007- code : ansistring(0) - Lazarus : ansistring=utf8 - Delphi 2009+ UTF16. - fpGUI: ansistring = utf-8 - MSEgui: existing FPC UnicodeString = utf-16 Martin

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-10 Thread Joost van der Sluis
On Mon, 2011-01-10 at 01:12 +, Martin wrote: On 03/01/2011 11:30, Joost van der Sluis wrote: I also promised to build a Windows-gdb binary with the latest Dwarf-3 patches from the Archer-project. This can be downloaded here:

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-10 Thread Martin
On 10/01/2011 20:26, Joost van der Sluis wrote: On Mon, 2011-01-10 at 01:12 +, Martin wrote: On 03/01/2011 11:30, Joost van der Sluis wrote: I also promised to build a Windows-gdb binary with the latest Dwarf-3 patches from the Archer-project. This can be downloaded here:

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-10 Thread Joost van der Sluis
On Mon, 2011-01-10 at 20:43 +, Martin wrote: On 10/01/2011 20:26, Joost van der Sluis wrote: On Mon, 2011-01-10 at 01:12 +, Martin wrote: On 03/01/2011 11:30, Joost van der Sluis wrote: I also promised to build a Windows-gdb binary with the latest Dwarf-3 patches from the

[fpc-devel] Nested register error for procedure passing address

2011-01-10 Thread Andrew Brunner
procedure Something(Param1...); var my:TMyData; procedure Testing; inline; // or whatever begin my.test:=0; end; begin MyAPI.DoeSomething(Param1,@Testing); end; I want to be able to pass Testing as a variable so the callback can occur but realize that FPC did not like nested

[fpc-devel] Re: Nested register error for procedure passing address

2011-01-10 Thread Andrew Brunner
I did read this however, I don't have the option of rewriting all the other implements to my api to declare as nested... http://wiki.freepascal.org/FPC_New_Features_Trunk#Support_for_nested_procedure_variables ___ fpc-devel maillist -

dwarf3 and others too [Re: [fpc-devel] Dwarf3 and the encoding of classes]

2011-01-10 Thread Martin
I did some more test., I will check in later... None of the old dwarf or stabs seems to define the operator for classes. p FooBar gives unknown symbold FooBar So it does take it as one symbol? nil nil is not defined ever. but under stabs dwarf2 Foo=0 works Dwarf 3: While the debugger can

Re: dwarf3 and others too [Re: [fpc-devel] Dwarf3 and the encoding of classes]

2011-01-10 Thread Martin
On 11/01/2011 00:23, Martin wrote: I did some more test., I will check in later... Variant has also changed. Maybe intended, but no result can be optained... *** gdb 7.2-50 (fpc trunk / Dwarf3) TTestWatches TTestWatches TestWatches ptype ArgVariantInt ptype ArgVariantInt\n ~type =

Re: [fpc-devel] Re: Nested register error for procedure passing address

2011-01-10 Thread Max Vlasov
On Tue, Jan 11, 2011 at 1:46 AM, Andrew Brunner andrew.t.brun...@gmail.comwrote: I did read this however, I don't have the option of rewriting all the other implements to my api to declare as nested... http://wiki.freepascal.org/FPC_New_Features_Trunk#Support_for_nested_procedure_variables