Re: [fpc-pascal] FPC & fpGUI runs happily under OpenSolaris 2010.03

2011-07-28 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: Hi, After reading a post about another FPC developers trying to get a development system up and running under Solaris 10, I got curious. I downloaded OpenSolaris 2010.03 (dev 134). Installation was painless inside VirtualBox. Downloaded FPC's 2.4.4 release for Solaris. I

Re: [fpc-pascal] Re: operator overloading and counting references / creating / destoying anonymous instances

2011-07-28 Thread Jürgen Hestermann
Bernd schrieb: > Occasionally I hear other people mentioning operator overloading as a > must-have feature of any decent language but I wonder what real-world > problems they are actually solving with it. I think operator overloading is a pain. As you said: What is the advantage? For me operat

Re: [fpc-pascal] FPC & fpGUI runs happily under OpenSolaris 2010.03

2011-07-28 Thread Martin Schreiber
Am 28.07.2011 15:06, schrieb Graeme Geldenhuys: Here are some screenshots. http://opensoft.homeip.net:8080/~graemeg/fpgui_on_solaris-1.png http://opensoft.homeip.net:8080/~graemeg/fpgui_on_solaris-2.png It seems there is a first MSEide clone in the works. ;-) Martin __

Re: [fpc-pascal] An idea in my head to improve compilation speed

2011-07-28 Thread Graeme Geldenhuys
On 28 July 2011 06:45, leledumbo wrote: > I see > however one of compilation bottleneck in FPC: The -Fu switch. FPC linearly > searched for units in all given -Fu + a standard location. Did you actually profile FPC to see if that really is the bottleneck, or are you just taking an educated guess?

[fpc-pascal] FPC release for Solaris not available on SF

2011-07-28 Thread Graeme Geldenhuys
Hi, While I was trying out OpenSolaris and FPC, I did notice one small issue. The FPC 2.4.4 release for Solaris is not available for download from SourceForge, but it was from the freepascal.org domain. Was this simply a minor oversight? Regards, - Graeme - -- fpGUI Toolkit - a cross-platfo

[fpc-pascal] FPC & fpGUI runs happily under OpenSolaris 2010.03

2011-07-28 Thread Graeme Geldenhuys
Hi, After reading a post about another FPC developers trying to get a development system up and running under Solaris 10, I got curious. I downloaded OpenSolaris 2010.03 (dev 134). Installation was painless inside VirtualBox. Downloaded FPC's 2.4.4 release for Solaris. Installation was the easiest

Re: [fpc-pascal] operator overloading and counting references / creating / destoying anonymous instances

2011-07-28 Thread Mark Morgan Lloyd
Bernd wrote: Hi, I am just trying to wrap (parts of) the OpenSSL¹ bignum library (large integer arithmetic) into something that makes using it look at least a little bit more elegant than using the naked procedural C API while at the same time trying to not overdo it and not create a heavy code

Re: [fpc-pascal] Re: operator overloading and counting references / creating / destoying anonymous instances

2011-07-28 Thread Flávio Etrusco
On Thu, Jul 28, 2011 at 1:59 PM, Bernd wrote: > 2011/7/28 Bernd : >> I have tried making >> use of Interface and TInterfacedObject and this seems to do what I >> want: for example when witing A := A + B the + operator would return a >> new instance and the reference counting would then automatical

Re: RE : RE : RE : [fpc-pascal] XML-XSD export: importer & how to test

2011-07-28 Thread Reinier Olislagers
On 28-7-2011 20:59, Ludo Brands wrote: Agreed, but you cannot every kind of data type, for that you will probably need the various databases... and hopefully a continuous integration server to run the tests... >>> >>> Sqldb converts databases types to the internal ftxxx datatyp

RE : RE : RE : [fpc-pascal] XML-XSD export: importer & how to test

2011-07-28 Thread Ludo Brands
> >> Agreed, but you cannot every kind of data type, for that you > >> will probably need the various databases... and hopefully a > >> continuous integration server to run the tests... > >> > > > > Sqldb converts databases types to the internal ftxxx datatypes. So, > > yes, you can everything w

Re: RE : RE : [fpc-pascal] XML-XSD export: importer & how to test

2011-07-28 Thread Reinier Olislagers
On 28-7-2011 20:27, Ludo Brands wrote: > >> Agreed, but you cannot every kind of data type, for that you >> will probably need the various databases... and hopefully a >> continuous integration server to run the tests... >> > > Sqldb converts databases types to the internal ftxxx datatypes. So,

RE : RE : [fpc-pascal] XML-XSD export: importer & how to test

2011-07-28 Thread Ludo Brands
> Agreed, but you cannot every kind of data type, for that you > will probably need the various databases... and hopefully a > continuous integration server to run the tests... > Sqldb converts databases types to the internal ftxxx datatypes. So, yes, you can everything without external databa

Re: [fpc-pascal] How to detect serial/usb-serial ports.

2011-07-28 Thread Mark Morgan Lloyd
P. vanderWal wrote: - Original Message - From: "Mark Morgan Lloyd" To: Sent: Wednesday, July 27, 2011 10:36 PM Subject: Re: [fpc-pascal] How to detect serial/usb-serial ports. P.vanderWal wrote: Debian and Ubuntu grtjs Piet - Original Message - From: "Felipe Monteiro de C

Re: RE : [fpc-pascal] XML-XSD export: importer & how to test

2011-07-28 Thread Reinier Olislagers
On 28-7-2011 18:02, Ludo Brands wrote: >> 3. Regarding the tests: I thought about better ways of >> testing the exports. The only fairly easy way I see is >> testing with more databases (such as mysql which you were >> doing), maybe by adapting the existing fcl-db test framework. >> Haven't eve

[fpc-pascal] Re: operator overloading and counting references / creating / destoying anonymous instances

2011-07-28 Thread Bernd
2011/7/28 Bernd : > I have tried making > use of Interface and TInterfacedObject and this seems to do what I > want: for example when witing A := A + B the + operator would return a > new instance and the reference counting would then automatically call > the destructor of A when it assigns the new

RE : [fpc-pascal] XML-XSD export: importer & how to test

2011-07-28 Thread Ludo Brands
> -Message d'origine- > De : fpc-pascal-boun...@lists.freepascal.org > [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part > de Reinier Olislagers > Envoyé : jeudi 28 juillet 2011 16:29 > À : FPC Mailing list > Objet : [fpc-pascal] XML-XSD export: importer & how to test > > >

[fpc-pascal] Re: operator overloading and counting references / creating / destoying anonymous instances

2011-07-28 Thread Bernd
2011/7/28 Bernd : > operator + (a,b: IBigNum):IBigNum; > begin >  if not assigned(Result) then >    Result := TBigNum.Create; >  BN_add(Result.BN, a.BN, b.BN); > end; > > Am I allowed to access the Result in this way? I have done only a few > experiments and at one time it seemed I could indeed acc

[fpc-pascal] XML-XSD export: importer & how to test

2011-07-28 Thread Reinier Olislagers
On 28-7-2011 15:13, Reinier Olislagers wrote: > On 28-7-2011 14:36, Ludo Brands wrote: > > I'll get to the issues some time after the test framework improvements. > > If you prefer to, please feel free to directly enter the issues: > https://bitbucket.org/reiniero/fpc_laz_patch_playground/issues/

Re: [fpc-pascal] How to detect serial/usb-serial ports.

2011-07-28 Thread P. vanderWal
- Original Message - From: "Mark Morgan Lloyd" To: Sent: Wednesday, July 27, 2011 10:36 PM Subject: Re: [fpc-pascal] How to detect serial/usb-serial ports. P.vanderWal wrote: Debian and Ubuntu grtjs Piet - Original Message - From: "Felipe Monteiro de Carvalho" To: "FP

Re: RE : RE : [fpc-pascal] Patch: new XML export for FCL-DB ready forinclusion, issue 19790 - includes Delphi Clientdataset

2011-07-28 Thread Reinier Olislagers
On 28-7-2011 14:36, Ludo Brands wrote: >>> - bcd: invalid field type >> Ok, what field type do we need ;) I'll wait for your further >> investigations. > > Line 2087 becomes: > > ftBCD: //WIDTH=precision, DECIMALS=scale > //negative DECIMALS not allowed !!! oracle does allow n

RE : RE : [fpc-pascal] Patch: new XML export for FCL-DB ready forinclusion, issue 19790 - includes Delphi Clientdataset

2011-07-28 Thread Ludo Brands
> > - bcd: invalid field type > Ok, what field type do we need ;) I'll wait for your further > investigations. Line 2087 becomes: ftBCD: //WIDTH=precision, DECIMALS=scale //negative DECIMALS not allowed !!! oracle does allow negative scale begin TDOMElement(Colum

[fpc-pascal] Re: operator overloading and counting references / creating / destoying anonymous instances

2011-07-28 Thread Bernd
2011/7/28 Bernd : > And also maybe does some > clever and elegant pattern exist that would enable me to simply reuse > the instance of A (if an initialized object exists already on the left > side of the assignment) For example (pseudocode, not sure if this is allowed): operator + (a,b: IBigNum):

[fpc-pascal] operator overloading and counting references / creating / destoying anonymous instances

2011-07-28 Thread Bernd
Hi, I am just trying to wrap (parts of) the OpenSSL¹ bignum library (large integer arithmetic) into something that makes using it look at least a little bit more elegant than using the naked procedural C API while at the same time trying to not overdo it and not create a heavy code monster instea

Re: RE : RE : RE : [fpc-pascal] Patch: new XML export for FCL-DB readyforinclusion, issue 19790 - includes Delphi Clientdataset

2011-07-28 Thread michael . vancanneyt
On Thu, 28 Jul 2011, Ludo Brands wrote: - when a string field contains the > character, the row is not imported but the previous one is duplicated. Strange, shouldn't this be handled by the XML export code? Debugged xmlwrite.pp. In DelphiClientDataset, values are sent out as attribut

RE : RE : RE : [fpc-pascal] Patch: new XML export for FCL-DB readyforinclusion, issue 19790 - includes Delphi Clientdataset

2011-07-28 Thread Ludo Brands
> > >>> - when a string field contains the > character, the row is not > >>> imported but the previous one is duplicated. > >> Strange, shouldn't this be handled by the XML export code? > > > > Debugged xmlwrite.pp. In DelphiClientDataset, values are > sent out as > > attributes of ROW. Line

Re: RE : RE : [fpc-pascal] Patch: new XML export for FCL-DB ready forinclusion, issue 19790 - includes Delphi Clientdataset

2011-07-28 Thread michael . vancanneyt
On Thu, 28 Jul 2011, Ludo Brands wrote: - when a string field contains the > character, the row is not imported but the previous one is duplicated. Strange, shouldn't this be handled by the XML export code? Debugged xmlwrite.pp. In DelphiClientDataset, values are sent out as attributes of R

RE : RE : [fpc-pascal] Patch: new XML export for FCL-DB ready forinclusion, issue 19790 - includes Delphi Clientdataset

2011-07-28 Thread Ludo Brands
> > - when a string field contains the > character, the row is not > > imported but the previous one is duplicated. > Strange, shouldn't this be handled by the XML export code? Debugged xmlwrite.pp. In DelphiClientDataset, values are sent out as attributes of ROW. Line 133 in xmlwrite.pp specifie

Re: RE : [fpc-pascal] Patch: new XML export for FCL-DB ready for inclusion, issue 19790 - includes Delphi Clientdataset

2011-07-28 Thread Reinier Olislagers
On 28-7-2011 6:34, Reinier Olislagers wrote: > On 27-7-2011 20:49, Ludo Brands wrote: >> >> Some problems with Delphi Clientdataset: >> -Delphi has the dfXMLUTF8 and dfXML format for exporting data but no way to >> specify this for reading. The difference is in the first line: >> encoding="UTF-8".

Re: [fpc-pascal] Patch: new XML export for FCL-DB ready for inclusion, issue 19790 - includes Delphi Clientdataset

2011-07-28 Thread michael . vancanneyt
On Thu, 28 Jul 2011, Reinier Olislagers wrote: On 27-7-2011 20:52, michael.vancann...@wisa.be wrote: On Wed, 27 Jul 2011, Reinier Olislagers wrote: Update: includes first stab at Delphi Clientdataset. Please test with various datatypes as I haven't been able to map all of them... I adde