Re: [fpc-devel] Delphi anonymous methods

2013-03-07 Thread Alexander Shishkin
03.03.2013 2:22, Sven Barth пишет: On 02.03.2013 20:55, Sven Barth wrote: Also there are open questions which require brainstorm: 1. Does Pascal needs other implementation of closures which is different from anonymous methods implementation? I would say no. After all the method implementation

Re: [fpc-devel] Faster InitObject

2012-02-23 Thread Alexander Shishkin
23.02.2012 11:47, Amir пишет: Hi, I have a code, developed in object pascal, with many classes. The project is working fine. Today, I used callgrind (valgrind --tool=calgrind) to see which function consumes the most execution time and I noticed that the most of time in my project is consumed by

Re: [fpc-devel] Faster InitObject

2012-02-23 Thread Alexander Shishkin
23.02.2012 22:25, Amir пишет: On 02/23/2012 01:20 AM, Alexander Shishkin wrote: 1) You can override TObject.NewInstance, w|o calling inherited. (Init instance is called from NewInstance) and do whatever you want What does each of the follwoing lines do? It looks like they are setting

Re: [fpc-devel] Access violation during compilation

2012-01-19 Thread Alexander Shishkin
18.01.2012 15:39, kyan пишет: Hello everyone. I am trying to port a set of Delphi libraries to FPC and during compilation from the Lazarus IDE I get a Compilation aborted without any other explanation. Doing the build from a command prompt I get this: Compiling unit1.pas Compiling

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

2011-12-20 Thread Alexander Shishkin
20.12.2011 4:00, 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 -

Re: [fpc-devel] UnicodeStrings - Variant conversion

2011-11-28 Thread Alexander Shishkin
14.11.2011 7:02, Alexander Shishkin пишет: Currently assigning UnicodeString to variant converts string to WideString and makes variant of type varOleStr. I think it should be varUString and w|o any conversion (also this is delphi compatible). But the question is which type should

[fpc-devel] UnicodeStrings - Variant conversion

2011-11-14 Thread Alexander Shishkin
Currently assigning UnicodeString to variant converts string to WideString and makes variant of type varOleStr. I think it should be varUString and w|o any conversion (also this is delphi compatible). But the question is which type should be if WideString=UnicodeString?

Re: [fpc-devel] Updated FPC JVM snapshot

2011-11-07 Thread Alexander Shishkin
07.11.2011 4:39, Jonas Maebe пишет: Hi, I've put a new FPC JVM snapshot online (corresponding to svn r19598 of the jvmbackend branch), linked from http://wiki.freepascal.org/FPC_JVM Changes since the previous snapshot include: * the compiler will now implicitly convert between all Pascal

Re: [fpc-devel] Fatal: Compilation aborted An unhandled exception occurred at $0043ED8C :

2011-10-28 Thread Alexander Shishkin
27.10.2011 17:26, Alexander Shishkin пишет: I`ve got this with 2.5.1 2.7.1 1) unable to clean reproduce (real code is https://github.com/alexvins/dwscript/tree/628669df8fd349968e7498ab1da617be6c4f3977) Fatal: Compilation aborted An unhandled exception occurred at $0043ED8C : EAccessViolation

[fpc-devel] Fatal: Internal error 200512115

2011-10-27 Thread Alexander Shishkin
I`ve got this with 2.5.1 2.7.1 1) unable to clean reproduce (real code is https://github.com/alexvins/dwscript/tree/628669df8fd349968e7498ab1da617be6c4f3977) 2) error reported in the middle of EMPTY line. 3) no ideas how to to make workaround Can anyone help?

Re: [fpc-devel] Fatal: Internal error 200512115

2011-10-27 Thread Alexander Shishkin
27.10.2011 17:40, Jonas Maebe пишет: On 27 Oct 2011, at 15:26, Alexander Shishkin wrote: I`ve got this with 2.5.1 2.7.1 1) unable to clean reproduce (real code is https://github.com/alexvins/dwscript/tree/628669df8fd349968e7498ab1da617be6c4f3977) 2) error reported in the middle of EMPTY

Re: [fpc-devel] Fatal: Internal error 200512115

2011-10-27 Thread Alexander Shishkin
27.10.2011 18:36, Sven Barth пишет: Am 27.10.2011 16:19, schrieb Alexander Shishkin: 27.10.2011 17:40, Jonas Maebe пишет: On 27 Oct 2011, at 15:26, Alexander Shishkin wrote: I`ve got this with 2.5.1 2.7.1 1) unable to clean reproduce (real code is https://github.com/alexvins/dwscript/tree

Re: [fpc-devel] Fatal: Internal error 200512115

2011-10-27 Thread Alexander Shishkin
27.10.2011 18:52, Sven Barth пишет: Am 27.10.2011 16:49, schrieb Alexander Shishkin: Wrong message: ...\Source\dwsSymbols.pas(264,20) Fatal: Internal error 200512115 Real place: \Source\dwsUtils.pas(263,20) Patch for workaround: [snip] Thanks. As this is a bug related to Delphi-style

Re: [fpc-devel] Fatal: Internal error 200512115

2011-10-27 Thread Alexander Shishkin
27.10.2011 23:11, Sven Barth пишет: On 27.10.2011 17:45, Alexander Shishkin wrote: 27.10.2011 18:52, Sven Barth пишет: Am 27.10.2011 16:49, schrieb Alexander Shishkin: Wrong message: ...\Source\dwsSymbols.pas(264,20) Fatal: Internal error 200512115 Real place: \Source\dwsUtils.pas(263,20