Re: [fpc-pascal] ALSA 1.2.X wrappers required
On 06/06/2014 02:48 PM, Nikolay Nikolov wrote: On 6.6.2014 г. 12:22, Nikolay Nikolov wrote: On 06/06/2014 09:45 AM, leledumbo wrote: Hello, I want to program for ALSA, so I need the Pascal wrapper. Most recent one I found is fpALSA, which corresponds to 1.0.25 (last release) version if ALSA. However, current ALSA is of version 1.2.X and the interface is somewhat different with 1.0.X. So if you have a good wrapper, please point me (before I create it myself, I hate effort duplication, especially since mine is almost always worse than others). I'll try to update fpALSA to the latest ALSA version this weekend. Btw, where's the 1.2.x ALSA version? The latest version I see is 1.0.27.2: http://www.alsa-project.org/main/index.php/Download Ok, just updated fpALSA to the 1.0.27.2 ALSA version. It can be downloaded from here: https://sourceforge.net/projects/fpalsa/ I couldn't find a 1.2.x ALSA version anywhere, so I'm assuming it was a typo and 1.0.27.2 is the latest version. Nikolay ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] CustHttpApp and HP httperf tool
2014-06-07 4:54 GMT-03:00 Michael Van Canneyt : > > On Fri, 6 Jun 2014, silvioprog wrote: > >> 2014-06-06 13:17 GMT-03:00 Michael Van Canneyt : >> On Fri, 6 Jun 2014, silvioprog wrote: >> Hello, >> I'm testing the CustHttpApp unit, and I found one error. See >> the httperf logs below: >> >> >> The http server does not support keeping the connection open. >> >> Michael. >> >> >> :-( >> > > It is on my TODO list, but with very low priority. Free Pascal surprises me more and more! :-) -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Junior Tasks
Hi, is this page[1] up to date? I believe would be interesting to have a page(a dedicated system, bugtracker tag?) where people can volunteer to help with small, well defined tasks. Maybe something similar to this[2], but more elaborate and covering not only conversion. I know that anyone can submit patches to the bugtracker, but I'm talking about a kind of fpc/lazarus subprojects where volunteer work could be useful. If such page/system already exists, please inform the URL. Thank you, Daniel [1] (Junior Developer tasks) http://www.freepascal.org/future.html [2] wiki.lazarus.freepascal.org/Current_conversion_projects ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Compiler error passing a Property as a parameter
Hi, I think it was FPC 2.6.0 that changed the language rules about Properties. You can't pass them directly as a var parameter, can't assign to a property of a property etc. Anyway, somebody recently asked my why this was implemented, and I can't actually remember the exact rational behind the FPC team's decision. Does anybody have a link to the documentation or FPC discussion on this? I'm looking for info on what was so bad about the old behaviour etc. and if this was another Delphi compatibility change or not? I want to pass this information on, but want to make sure I get it right. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Typinfo incompatibilities between FPC and Delphi
On 2014-06-03 10:08, Sven Barth wrote: > > If one uses a helper function like you did then it's indeed not as bad, > but if one doesn't... Indeed. :) I find it is often amount managing readability of code. The application developer doesn't need to worry to much about the difference between platforms - if you give them the right tools. After all, that is what FPC is all about. > Out of curiosity: is this helper declared as "inline"? Would get rid of > the call completely in both Delphi and FPC... A very good suggestion thanks. I'll apply that immediately. >> I've also introduced an enhanced GetPropInfo() with a signature as > follows: >> >> function tiGetPropInfo(AClass: TClass; PropPath: string; PInstance: >> Pointer): PPropInfo; > > Might also profit from a declaration as "inline" :) This one might not work as inline, as it is much more involved. Also note the PropPath property. tiOPF can handling calls like: tiGetPropInfo(MyObject, 'Contact.Address.PostCode', ...) It will iterate through the MyObject.Contact.Address.PostCode properties, obviously doing NULL checks along the way. Hence the name "PropPath" (property path). Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Compiler error passing a Property as a parameter
On Sun, June 8, 2014 21:50, Graeme Geldenhuys wrote: Hi Graeme, > I think it was FPC 2.6.0 that changed the language rules about > Properties. You can't pass them directly as a var parameter, can't > assign to a property of a property etc. > > Anyway, somebody recently asked my why this was implemented, and I can't > actually remember the exact rational behind the FPC team's decision. > > Does anybody have a link to the documentation or FPC discussion on this? > I'm looking for info on what was so bad about the old behaviour etc. and > if this was another Delphi compatibility change or not? > > I want to pass this information on, but want to make sure I get it right. Have you already checked the "User changes 2.x.0" pages of the respective releases (especially http://wiki.freepascal.org/User_Changes_2.6.0#Taking_the_address_of_fields_of_record_properties and http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields referenced from the previous one)? Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal