Re: [fpc-pascal] fpc-pascal] Static linking against the indigo cheminformatics package under Linux x64 complains undefined reference to __dso_handle when Free Pascal is used

2014-05-16 Thread Xichen Li
Dear Joans, After some digging, it seems that Free Pascal cannot link to C++ object file directly, which means Free Pascal cannot link to C++ static libraries directly. Runtime Error 216 errorrs. http://stackoverflow.com/questions/23647522 http://stackoverflow.com/questions/8174998 This featu

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-16 Thread Dmitry Boyarintsev
Just a suggestion. Try to rewrite the code not to use anonymous functions. The need for their support in FPC will go away. Seriously! no trolling here. thanks, Dmitry On Thu, May 15, 2014 at 1:05 AM, Craig Peterson wrote: > Hi all, > > What's the current state of FPC's anonymous functions/closu

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-16 Thread Fabio Luis Girardi
2014-05-16 11:13 GMT-03:00 Dmitry Boyarintsev : > Just a suggestion. Try to rewrite the code not to use anonymous functions. > The need for their support in FPC will go away. > Seriously! no trolling here. > I agree. > > thanks, > Dmitry > > > On Thu, May 15, 2014 at 1:05 AM, Craig Peterson >

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-16 Thread Craig Peterson
On 5/16/2014 9:13 AM, Dmitry Boyarintsev wrote: > Just a suggestion. Try to rewrite the code not to use anonymous functions. > The need for their support in FPC will go away. The code in question doesn't use anonymous methods yet, but I've already tried the alternatives and they are not an improve

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-16 Thread Florian Klämpfl
Am 16.05.2014 17:45, schrieb Craig Peterson: > > 1) I want to use the OmniThreadLibrary. Setting up objects and thread > descendents is fine in moderation, but it's too much of a hassle when > you just want a quick parallel for loop. Isn't using anonymous methods in this case only a work around

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-16 Thread Maciej Izak
Hi, 2014-05-16 18:18 GMT+02:00 Florian Klämpfl : > > ... I mean, anonymous > methods are only a short cut; closures allow you to capture the state of > the variables of the outer > scope even if the outer scope is left. But that's it? I need anonymous methods too. They have no full-value replac

Re: [fpc-pascal] Delphi compatible anonymous functions

2014-05-16 Thread Craig Peterson
On 5/16/2014 11:18 AM, Florian Klämpfl wrote: > Isn't using anonymous methods in this case only a work around for missing > OpenMP support? Absolutely, but neither Free Pascal nor Delphi implement OpenMP. The OpenMP page on the Free Pascal wiki hasn't been significantly changed since 2008, which

[fpc-pascal] For-in-loop question about GetEnumerator

2014-05-16 Thread Krzysztof
Hi, This article is quite clear for me: http://wiki.freepascal.org/for-in_loop But let say that I have this class: TMyList = class private FList: TList public constructor Create; destructor Destroy; procedure Add; procedure Remove; end; Now I want to do: for a in MyClass do begin e

Re: [fpc-pascal] For-in-loop question about GetEnumerator

2014-05-16 Thread silvioprog
2014-05-16 18:13 GMT-03:00 Krzysztof : > Hi, > > This article is quite clear for me: http://wiki.freepascal.org/for-in_loop > > But let say that I have this class: > > TMyList = class > private > FList: TList > public > constructor Create; > destructor Destroy; > > procedure Add; > proce

[fpc-pascal] Annual Inform

2014-05-16 Thread Rafael Angel Campos Vargas
Annual Inform: To FreePascal project: Sorry, I don’t speak English. Thanks a lot for your compiler. I’m programming LibreN3D for animations in FreeDOS-POVRay. My project advances very slowly. I’m convinced is useful and very possible. In this link http://www.filefactory.com/file/4zko0f

Re: [fpc-pascal] For-in-loop question about GetEnumerator

2014-05-16 Thread Mattias Gaertner
On Fri, 16 May 2014 23:13:43 +0200 Krzysztof wrote: >[...] > This article is quite clear for me: http://wiki.freepascal.org/for-in_loop >[...] > ... then FList.GetEnumerator create new object > (TListEnumerator.Create(Self)). My question is, where it is freed? Is it > freed automatically on runti

Re: [fpc-pascal] For-in-loop question about GetEnumerator

2014-05-16 Thread Krzysztof
Thanks! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Armv7 fpc openocd v8

2014-05-16 Thread Justin Smyth
Hi everyone, I have recently got open ocd v8 to talk to my nxp lpc 1343 via a stlinkv2 , should fpc ( 2.6.4 or higher support this type of CPU and does anyone have any ideas how to hook up gdb to openocd ? I am thinking of using Lazarus to step through some code if possible) Justin ___