Re: [fpc-devel] resources on non-windows platform

2016-11-22 Thread Paul Ishenin
hard to implement feature - "include directive" which allows to use macroses and constants from .pas, .h and .cpp files. -- Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-devel] ANN: Management operators - final patch

2016-11-20 Thread Paul Ishenin
y for Clone and fpc_Addref for Copy is misleading. I know Florian insisted on Copy and Clone names but still for my taste it would be the best to have conformity between compiler and RTL. -- Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-

Re: [fpc-devel] Incomplete docs on operator precedence / Question about actual precedence

2014-02-02 Thread Paul Ishenin
03.02.2014 9:42, Martin Frb пишет: It also appears that the "." takes precedence over @ @Object.Foo is equal to @(Object.Foo) well otherwise it could not compile In this case "." is not operator. Best regards, Paul Ishenin __

Re: [fpc-devel] Encoded AnsiString

2013-12-30 Thread Paul Ishenin
damage trunk and destroy Paul's dreams :) I have nothing against if you think there are no risks to delay the release for more than a year. Let's see how well I fare; 2.8.0 is not for next month anyway. First get 2.6.4 out of the door. Best regards, Pa

Re: [fpc-devel] Encoded AnsiString

2013-12-30 Thread Paul Ishenin
s having the unicode string support if none of the classes or units make use of it ? No-one will test it or even be able to test it because none of the base classes/routines are adapted to it. We have string, file and console routings for use and testing. Best r

Re: [fpc-devel] Encoded AnsiString

2013-12-30 Thread Paul Ishenin
huge changes we have in trunk as is (maybe together with resourcestring solution). Then with the following minor releases we improve dotted unit names support (like default namespaces) together with experiments for ansi/unicode RTL. Best regards, Paul Is

Re: [fpc-devel] Encoded AnsiString

2013-12-29 Thread Paul Ishenin
g the unicodestring move and check whether something minor can be added to FPC. All major changes like the new TStringList class based on UnicodeString should wait for 2.8 release. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-

Re: [fpc-devel] bug or feature?

2013-11-24 Thread Paul Ishenin
regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] question on dwarf2 info written by fpc 2.6.2

2013-10-05 Thread Paul Ishenin
06.10.13, 3:08, Martin пишет: On the other hand var a: longint; generates the same. Why? Because Integer is an alias - inside compiler only the symbol is different for thise case and the definition is the same. Best regards, Paul Ishenin ___ fpc

Re: [fpc-devel] Possible issue with 2.7.1 string encodings

2013-08-25 Thread Paul Ishenin
Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Little feature teaser

2013-08-04 Thread Paul Ishenin
04.08.13, 20:20, Sven Barth пишет: Then I just need to wait until you've done the 635364 other items on your list. Sounds doable :P This is not doable even if Florian will do 10 items per day. The life is not as long as we wish. Best regards, Paul Is

Re: [fpc-devel] TTypeKind, strings and chars

2013-05-31 Thread Paul Ishenin
(UnicodeChar is tkWChar). I also don't know why we have it. Compiler does not use it. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Crash while compiling fpc 2.7.1 on ARM

2013-05-29 Thread Paul Ishenin
29.05.2013 14:06, Michel Catudal пишет: The one that I compiled before the code was broken To answer on your question I need to know paticular compiler version. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Crash while compiling fpc 2.7.1 on ARM

2013-05-28 Thread Paul Ishenin
e RTL. What starting compiler do you use? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Closures via interfaces

2013-05-27 Thread Paul Ishenin
don't need RTTI unit then it will be much more simplier to implement your requirements. Attributes are half ready in a branch. RTTI for non-published elements (together with $RTTI directive) is not a very hard task. Best regards, Paul Ishenin ___

Re: [fpc-devel] Closures via interfaces

2013-05-27 Thread Paul Ishenin
asked Maciej Izak what he wants from extended RTTI. Maybe this is a small subset which is not very hard to implement. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-devel] Closures via interfaces

2013-05-26 Thread Paul Ishenin
lease tell what exactly you are waiting for? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] issue with trunk and dyn array

2013-05-16 Thread Paul Ishenin
17.05.2013 8:59, Paul Ishenin пишет: Yes. The RTTI for that type seems to be completely messed up in current trunk. Probably caused by r24458. Dynamic arrays were not touched by this revision. I only changed RTTI for non-dynamic array types. Heh. But in the Martic example was "array[..

Re: [fpc-devel] issue with trunk and dyn array

2013-05-16 Thread Paul Ishenin
trunk. Probably caused by r24458. Dynamic arrays were not touched by this revision. I only changed RTTI for non-dynamic array types. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-devel] properties accessing field of nested object ?

2013-05-13 Thread Paul Ishenin
13.05.13, 18:36, Martin пишет: Makes sense, since it does not work for properties, but only for fields. The access to record fields is intended though? Yes. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http

[fpc-devel] Announcement: RTTI extension

2013-05-10 Thread Paul Ishenin
le of how to deal with this new RTTI and some more information by the following link: http://wiki.lazarus.freepascal.org/User_Changes_Trunk#RTTI_changes Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Unit for handling UTF-8 strings

2013-04-09 Thread Paul Ishenin
out ACharLength : Integer) : UCS4Char; overload; At the same time even without UTF8 overloads compiler will insert implicit conversion from UTF8String to UnicodeString when you pass it to that functions. So UTF8 overloads can only increase spead by removing 1 implicit conversion. Best regard

Re: [fpc-devel] Unit for handling UTF-8 strings

2013-04-09 Thread Paul Ishenin
ning Demand without assigning Patches has almost no effect :) Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Unit for handling UTF-8 strings

2013-04-09 Thread Paul Ishenin
; overload; function ConvertToUtf32(const AHighSurrogate, ALowSurrogate : UnicodeChar) : UCS4Char; overload; Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Should the compiler work, if compiled with -Cr?

2013-03-16 Thread Paul Ishenin
d packages built with -Cr. It has more failures than a regular build. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Should the compiler work, if compiled with -Cr?

2013-03-15 Thread Paul Ishenin
you? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] crash when building trunk

2013-03-11 Thread Paul Ishenin
Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Delphi anonymous methods

2013-03-05 Thread Paul Ishenin
er mail of Michael I already look at this more tolerant now. So please let's stop this endless dispute about nothing. We have different vision and this is good after all. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.free

Re: [fpc-devel] Delphi anonymous methods

2013-03-05 Thread Paul Ishenin
05.03.13, 17:55, Sven Barth wrote: @Paul: see? :) I see you, Graeme, Michael and probably some more 5-6 developers. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

Re: [fpc-devel] Delphi anonymous methods

2013-03-05 Thread Paul Ishenin
Okay. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Delphi anonymous methods

2013-03-05 Thread Paul Ishenin
ander who had failed to port his project to FPC + Laz because of many incompatilities in both projects. I remember Fib+ developer who stoped his effort to port component to FPC after some found incompatibilities. There is nothing good in incomp

Re: [fpc-devel] Delphi anonymous methods

2013-03-05 Thread Paul Ishenin
arus components. Mode ObjFPC is not for Delphi compatiblity. It's there to implement a cleaner variant of the (Object) Pascal language (and Michael wrote), and if that means higher maintenance burden, so be it. That cleaner variants split pascal for nothing - to make 3-5 developers happy.

Re: [fpc-devel] Delphi anonymous methods

2013-03-05 Thread Paul Ishenin
contact with some delphi team members on their forum on twitter and on some blogs but without result. Regards FPC, I would indeed remove FPC mode. Those who need it can use FPC 2.6. I would also minimize the difference between objfpc and delphi modes. Best regards, Paul Ishenin

Re: [fpc-devel] Delphi anonymous methods

2013-03-04 Thread Paul Ishenin
gainst 2 implementations of 1 feature: one to be delphi compatible, one to satisfy few people from pascal community. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Delphi anonymous methods

2013-03-04 Thread Paul Ishenin
x27;m totally agree. 2 implementations complicates the compiler and complicates the use of the compiler. Component developers and those who plant to port their delphi projects will not use objfpc mode if it will not be delphi compatible. Best regards, Paul Is

Re: [fpc-devel] Delphi anonymous methods

2013-03-03 Thread Paul Ishenin
extensions. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] FPC-JVM: Problem with "with" in nested records

2013-02-12 Thread Paul Ishenin
12.02.2013 18:58, Nicola wrote: Rec1.a := 123; Log('with: ' + IntToStr(Data.Rec1.a));// !!FAIL!!, it shows 0 Non JVM compiler outputs 123. So indeed a JVM compiler bug. Best regards, Paul Ishenin ___ fpc-deve

Re: [fpc-devel] Re: [fpc-announce] Feature announcement: Type helpers

2013-02-08 Thread Paul Ishenin
t.PrintSize: class procedure TLongIntHelper.PrintSize; begin WriteLn(SizeOf(LongInt)); end; static methods don't have a magic Self variable. In any case I suggest to look for test which had been commited together with Sven patch. Best regards, Paul Ishenin __

Re: [fpc-devel] Re: [fpc-announce] Feature announcement: Type helpers

2013-02-07 Thread Paul Ishenin
pilation aborted > > The compiler is freshly generated from the SVN > > Does the compiler expect special options to invoke the record helper feature? Did you add "{$mode objfpc}" to your program? Look at the compile string argument: -Mobjfpc Best regards, Paul Isheni

Re: [fpc-devel] Re: [fpc-announce] Feature announcement: Type helpers

2013-02-07 Thread Paul Ishenin
iler is freshly generated from the SVN Does the compiler expect special options to invoke the record helper feature? Nothing. On objFPC mode which you use they are enabled by default. It is something with your compiler. Mine compiles your code. Best regards, Paul Ishenin ___

Re: [fpc-devel] Feature announcement: Type helpers

2013-02-06 Thread Paul Ishenin
will not be a type, so you'll have to force a type by constructor: s := TPoint(x,y).ToString; or, as it is currently, by a special function: s := Point(x,y).ToString; or with a record constructor: TPoint.Create(X, Y).ToString; Best regards, Paul Is

Re: [fpc-devel] Feature announcement: Type helpers

2013-02-06 Thread Paul Ishenin
06.02.13, 19:29, Michael Schnell пишет: but I feel point.x := x; point.y := y; s := point.ToString; is most clear. This is what you can already do in FPC 2.6.0 with advanced records feature active. Best regards, Paul Ishenin ___ fpc

Re: [fpc-devel] for-in-index loop

2013-01-29 Thread Paul Ishenin
29.01.13, 17:23, Hans-Peter Diettrich пишет: Paul Ishenin schrieb: At least it's more fun to implement something very new, instead of working on incomplete parts (loadable libraries, targets) which had been delayed due to problems. The same situation in Lazarus and in many open source pro

Re: [fpc-devel] for-in-index loop

2013-01-28 Thread Paul Ishenin
pen source projects BTW. Where are your patches for loadable libraries and new targets? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] for-in-index loop

2013-01-28 Thread Paul Ishenin
28.01.13, 21:51, Michael Van Canneyt пишет: Enough bickering; it is useless. We will not agree, no matter how many arguments are presented: simply because the arguments are of a metaphysical/human/whatever nature, and not technical. Agreed. Best regards, Paul Ishenin

Re: [fpc-devel] for-in-index loop

2013-01-28 Thread Paul Ishenin
write big programs in javascript and the anonymous methods easily confuse the javascript debuggers. You can use named methods too wihout drawbacks. Of course one of the benefits of anonymouse methods is javascript is access to local variables. And I don't notice that chrome debugger is confus

Re: [fpc-devel] for-in-index loop

2013-01-28 Thread Paul Ishenin
ing to say that this is one of these things where Delphi could simply have re-instated the TP-style objects. The compiler compiled them anyway already. There was no need to burden records with methods in an attempt to make them 'object-like'

Re: [fpc-devel] for-in-index loop

2013-01-28 Thread Paul Ishenin
nymouse methods in pascal - I use them in javascript when I need to perform something asynchronosly. I use avanced record syntax because it makes code more understandable. I scarry to use generics but that simple because they have many bugs. Best regards, Paul Ishenin __

Re: [fpc-devel] RFC: Support for new type "tuple" v0.1

2013-01-27 Thread Paul Ishenin
ase type for such a small task as returning a key in for-in loop. And (for Michael) I don't see any beauty in this. Imo, initial index extension is much more beauty than suggested here (a,b,c) := d; constructions. Best regards, Paul Ishenin ___ fp

Re: Anonymous procedures (Was: Re: [fpc-devel] for-in-index loop)

2013-01-26 Thread Paul Ishenin
26.01.13, 6:57, Alexander Klenin пишет: Why to invent a new solution if Delphi already have one: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/anonymousmethods_xml.html Best regards, Paul Ishenin

Re: [fpc-devel] for-in-index loop

2013-01-25 Thread Paul Ishenin
need to add for Delphi's generics support... This for-in-index is a peace of cake to parse in comparison. I confirm. When I tried think how to add delphi like generic parse to language I also had this nightnares. As result I simple stoped to work on them. Best r

Re: [fpc-devel] for-in-index loop

2013-01-25 Thread Paul Ishenin
when operators for simple types are present in the language it is too late to care about explicitly declarative language. It is simple not explicit anymore. And index (or better to call it key) extension for for-in loop will not make it less explicit for sure. Best regards, Paul Ishenin

Re: [fpc-devel] for-in-index loop

2013-01-24 Thread Paul Ishenin
sion for ObjP dialect and in general? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] for-in-index loop

2013-01-24 Thread Paul Ishenin
x variable. - If not then the for loop can only behave as current for in loops. Of course. Then I also have nothing against this feature. If it is controllable by enumrator to allow/reject this then it is ok. Best regards, Paul Ishenin ___ fpc-deve

Re: [fpc-devel] String handling in trunk (was utf8 in 2.6.0)

2013-01-05 Thread Paul Ishenin
application bundles as I know, so they can be edited by external programs too. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] String handling in trunk (was utf8 in 2.6.0)

2013-01-05 Thread Paul Ishenin
). Delphi now stores ResourceStrings as UnicodeString type. I think FPC will follow this in m_default_unicodestring modeswitch. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-devel] Forwarded message about FPC statusy

2012-12-25 Thread Paul Ishenin
gards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Paul Ishenin
production code already uses it, then the production code writers must have taken a risk for change knowing that this was a not yet released feature. This is exactly my minds. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel

Re: [fpc-devel] FPC related fairy tale

2012-10-18 Thread Paul Ishenin
ink that should be something generics related since Sven is working on them last time (as well as on record helpers for simple types). Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/ma

[fpc-devel] MemSize

2012-10-04 Thread Paul Ishenin
rely on it in LCL: var Data: array[0..2] of Integer; begin WriteLn(MemSize(@Data[0])); end. Without heaptrc on 32bit windows: 4294967284 With heaptrc: 0 -- Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepasca

Re: [fpc-devel] corba interface casting

2012-10-01 Thread Paul Ishenin
t got "Intf2" Did you try with "C.GetIntf as Intf2"? That should be the correct way to do this... Yes, but it does not work. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepa

[fpc-devel] corba interface casting

2012-10-01 Thread Paul Ishenin
I'm asking because without -CR the code compiles and with it gives an error Error: Class or COM interface type expected, but got "Intf2" Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.fr

Re: [fpc-devel] Unicode resource strings

2012-08-21 Thread Paul Ishenin
21.08.12, 23:21, Sven Barth пишет: There must also be a function to return the number of bytes. Does someone know the name? Length(s) * SizeOf(s[1]) It has the name ByteLength() Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel

Re: [fpc-devel] Unicode resource strings

2012-08-19 Thread Paul Ishenin
strings are still ansi strings even in delphi unicode mode. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] How to set code page in terminal? (Windows)

2012-06-21 Thread Paul Ishenin
ecause your constant is encoded in utf8. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Differences between 'tsym' and 'tdef'

2012-05-18 Thread Paul Ishenin
Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Differences between 'tsym' and 'tdef'

2012-05-18 Thread Paul Ishenin
rence to a class then look at how it is done with tobjectdef.childof or tobjectdef.extendeddef. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Differences between 'tsym' and 'tdef'

2012-05-17 Thread Paul Ishenin
ng it. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Re: Problem with nested classes and const struct values

2012-05-04 Thread Paul Ishenin
05.05.2012 14:23, Paul Ishenin wrote: Probably this happen because of some bug fix because I have the same error in delphi: htest.pas(44) Test.lpr(41) Error: E2003 Undeclared identifier: 'CLSInfo' Test.lpr(42) Error: E2003 Undeclared identifier: 'ACLInfo' Test.lpr(49)

Re: [fpc-devel] Re: Problem with nested classes and const struct values

2012-05-04 Thread Paul Ishenin
Undeclared identifier: 'CLSInfo' Test.lpr(42) Error: E2003 Undeclared identifier: 'ACLInfo' Test.lpr(49) Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-05-02 Thread Paul Ishenin
backwards compatibility are documented at: http://wiki.freepascal.org/User_Changes_2.6.0 ... Details about these new features can be found at http://wiki.freepascal.org/FPC_New_Features_2.6.0 Best regards, Paul Ishenin ___ fpc-devel maillist -

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-05-02 Thread Paul Ishenin
will sit then and criticize them. If you don't like the dish - cook yourself. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-05-02 Thread Paul Ishenin
02.05.2012 15:00, Hans-Peter Diettrich wrote: To the user this means "not compatible with D7 nor D2009" :-[ It is both compatible with D7 and some D2009 features. Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.free

Re: [fpc-devel] Bug #0021641: Array of const gives check range error

2012-04-04 Thread Paul Ishenin
04.04.2012 17:08, kyan написал: Delphi doesn't support qword at all, so there is no Delphi behaviour to be compatible with in that case. Or at least it didn't when the above was implemented. Does it now? No, it does not. Delphi XE has a UInt64 type. From the documentation: UInt64 represents

Re: [fpc-devel] Bug #0021641: Array of const gives check range error

2012-04-04 Thread Paul Ishenin
04.04.2012 16:34, Jonas Maebe wrote: Delphi doesn't support qword at all, so there is no Delphi behaviour to be compatible with in that case. Or at least it didn't when the above was implemented. Does it now? No, it does not. Best regards, Pa

Re: [fpc-devel] class section (public, private) in debug info

2012-03-20 Thread Paul Ishenin
20.03.12 19:02, Jonas Maebe написал: That's of course a very old version of gdb (some fork based on 6.3.50), so maybe it's a regression. As I remember this was fixed in fpc trunk only? Best regards, Paul Ishenin ___ fpc-devel maillist -

Re: [fpc-devel] class section (public, private) in debug info

2012-03-20 Thread Paul Ishenin
y - to show the visibility in inspect window for example. More you know - better. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] global property, with getter in other unit

2012-02-28 Thread Paul Ishenin
property_dec; begin ... message(parser_e_resourcestring_only_sg); This should give an error about resource strings when you have a deal with a property. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] global property, with getter in other unit

2012-02-28 Thread Paul Ishenin
level. If this is not some FPC feature unknown to me I will fix it. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] global property, with getter in other unit

2012-02-27 Thread Paul Ishenin
error. But when trying to read the property UnitFoo.pas(999,3) Error: Wrong number of parameters specified for call to "FunctionFromOtherUnit" Can you submit a more complete example? Best regards, Paul Ishenin ___ fpc-devel maillist -

Re: [fpc-devel] Warning: Implicit string type conversion

2012-02-02 Thread Paul Ishenin
codepage}). In Delphi resourcestrings are unicodestrings but this is not so in FPC because team still not decided about the default string type. Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.o

Re: [fpc-devel] Warning: Implicit string type conversion

2012-02-02 Thread Paul Ishenin
e replaced by (or retyped into) UnicodeString now? IMO only the Windows COM libraries require real WideString (BSTR) arguments, while the ordinary "W" API should be happy with pointers to UnicodeStrings. I agree that better to review fcl-xml code and at least replace WideStrings with U

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin
20.12.2011 10:47, Felipe Monteiro de Carvalho пишет: On Tue, Dec 20, 2011 at 1:00 AM, Paul Ishenin wrote: Final methods can't be overriden in the descendants. But what are final fields for? I think they are the way to write a constant in Java. Because they have no procedural elements,

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin
18.12.2011 20:45, Jonas Maebe wrote: And final fields. Final methods can't be overriden in the descendants. But what are final fields for? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin
application (though Lazarus first needs to learn about the "unicodestrings" modeswitch, What's that? A modeswitch introduced in the JVM branch to turn the string type to unicodestring (similar to {$H+} turns string to ansistring). Best regard

Re: [fpc-devel] Problems with namespaces and structs

2011-12-15 Thread Paul Ishenin
l but full example to the bug tracker? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Exception handling differences with Delphi

2011-11-24 Thread Paul Ishenin
application. Btw, this article may be very useful for the task you are doing: http://www.delphikingdom.ru/asp/viewitem.asp?catalogid=1392 Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-devel] UnicodeStrings - Variant conversion

2011-11-14 Thread Paul Ishenin
WideString=UnicodeString? I don't remember exactly but it is seems to me that delphi also uses unicodestring for WideStrings on osx. If this is ideed so it will be easy to check. Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-

Re: [fpc-devel] Problem with Now() and time changed by ntpd

2011-11-03 Thread Paul Ishenin
they should affect you? Do you any ansistring type except 'AnsiString' in your applications? Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Problem with Now() and time changed by ntpd

2011-11-03 Thread Paul Ishenin
e new ansistring type. Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] [iconv][glibc] function "iconvctl" not found.

2011-10-23 Thread Paul Ishenin
23.10.2011 20:01, Paul Ishenin пишет: 23.10.11 19:49, 4iter пишет: Hi! Fatal: Compilation aborted .. Maybe fixit it with #ifdef ? How to define this ifdef? Maybe it could be fixed either by dynamic loading or weakexternal directive? I tried to

Re: [fpc-devel] [iconv][glibc] function "iconvctl" not found.

2011-10-23 Thread Paul Ishenin
ently uses GNU libiconv. So a weak symbol is probably the best solution. Does weaksymbol works on all platforms where cwstrings is used (I know that it is not implemented on windows at least but there we don't need cwstrings too)? Best regards, Pa

Re: [fpc-devel] [iconv][glibc] function "iconvctl" not found.

2011-10-23 Thread Paul Ishenin
23.10.11 19:49, 4iter пишет: Hi! Fatal: Compilation aborted .. Maybe fixit it with #ifdef ? How to define this ifdef? Maybe it could be fixed either by dynamic loading or weakexternal directive? Best regards, Paul Ishenin

Re: [fpc-devel] Trunk does not compile on Linux x86-64

2011-10-19 Thread Paul Ishenin
stopping Fatal: Compilation aborted ... Are you using the latest released FPC = fpc 2.4.4 to build the trunk? If not please build with it. Building trunk compiler by an earlier version of trunk compiler is not supported. Best regards, Paul Ishenin __

Re: [fpc-devel] Delphi new AnsiStrings are incredibly broken :-(

2011-10-14 Thread Paul Ishenin
ments instead of RawByteString and therefore the conversion will be made before the byte compare. Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Ansistring code page

2011-10-13 Thread Paul Ishenin
le always contains strings encoded in the DefaultSystemCodePage? If you assign e.g. a string(866) variable to a plain ansistring variable, then such a conversion is also done, no? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.free

Re: [fpc-devel] bug report 20473: Please add a directive to define string=utf8string

2011-10-13 Thread Paul Ishenin
13.10.2011 16:30, Felipe Monteiro de Carvalho wrote: On Thu, Oct 13, 2011 at 10:26 AM, Paul Ishenin wrote: It will affect as well as compiler directive you suggested to add. No, the directive is per source code file. 3rd party libraries do not need to use it. Then use {$codepage UTF8} only

Re: [fpc-devel] bug report 20473: Please add a directive to define string=utf8string

2011-10-13 Thread Paul Ishenin
13.10.2011 16:14, Felipe Monteiro de Carvalho wrote: On Thu, Oct 13, 2011 at 9:44 AM, Paul Ishenin wrote: The later can be made by call SetMultiByteConversionCodePage(CP_UTF8) at the program start. From my comment on the bug report: Won't SetMultyByteConversionCodePage inadvertedly a

Re: [fpc-devel] bug report 20473: Please add a directive to define string=utf8string

2011-10-13 Thread Paul Ishenin
SetMultiByteConversionCodePage(CP_UTF8) at the program start. Best regards, Paul Ishenin. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] new string - question on usage

2011-10-12 Thread Paul Ishenin
13.10.2011 14:57, Hans-Peter Diettrich пишет: Paul Ishenin schrieb: 13.10.2011 9:13, Hans-Peter Diettrich wrote: Sven Barth schrieb: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/inc/astrings.inc?revision=19444&view=markup I don't understand the use of encoding 0 and C

  1   2   3   4   5   >