Re: [Lazarus] global operator overloading

2013-02-26 Thread Sven Barth
Am 26.02.2013 08:59 schrieb xrfang xrf...@gmail.com: No, it's not a dilemma, but rather a requirement. Before generics specialization, all required operations for given type must be known. This is because the symbol table when the generics is parsed must be reconstructed when it gets

Re: [Lazarus] global operator overloading

2013-02-26 Thread Xiangrong Fang
Hi Sven, Could you please give a simple example that shows what you said: require that the type with which you specialize is a record. Then a class operator in that record can be defined. Thanks 2013/2/26 Sven Barth pascaldra...@googlemail.com Am 26.02.2013 08:59 schrieb xrfang

Re: [Lazarus] global operator overloading

2013-02-26 Thread Michael Schnell
On 02/26/2013 09:07 AM, Sven Barth wrote: Helpers have the same problem. For now there is only one solution (as I already wrote): require that the type with which you specialize is a record. Then a class operator in that record can be defined. For the future I already have the following

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread Mattias Gaertner
On Tue, 26 Feb 2013 06:05:15 +0100 Michalis Kamburelis michalis.ka...@gmail.com wrote: Reimar Grabowski wrote: Hi, as the title says multisampling does not work for me. I was testing TOpenGLControl.MultiSampling on Linux (with Radeon GPU), it worked fine for me. Note that there is

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread Mattias Gaertner
On Mon, 25 Feb 2013 19:20:57 +0100 Reimar Grabowski reimg...@web.de wrote: [...] 3. The FBConfig then gets passed to glxCreateNewContext which returns a GLXContext. I get the ID from this context using glxQueryContext with GLX_FBCONFIG_ID. Looking up the ID in glxinfos list of FBConfigs

Re: [Lazarus] Error: Incompatible type for arg no. 1: Got TFPPenEndCap, expected TPenEndCap

2013-02-26 Thread Marcos Douglas
On Mon, Feb 25, 2013 at 7:19 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Mon, 25 Feb 2013 22:43:36 +0200 patspiper patspi...@gmail.com wrote: On 25/02/13 21:37, Marcos Douglas wrote: On Mon, Feb 25, 2013 at 11:09 AM, Marcos Douglas m...@delfire.net wrote: Hi, I updated my

Re: [Lazarus] global operator overloading

2013-02-26 Thread Sven Barth
On 26.02.2013 09:36, Xiangrong Fang wrote: Hi Sven, Could you please give a simple example that shows what you said: require that the type with which you specialize is a record. Then a class operator in that record can be defined. Let's suppose you have the following generic declaration: ===

Re: [Lazarus] global operator overloading

2013-02-26 Thread Sven Barth
On 26.02.2013 10:16, Michael Schnell wrote: On 02/26/2013 09:07 AM, Sven Barth wrote: Helpers have the same problem. For now there is only one solution (as I already wrote): require that the type with which you specialize is a record. Then a class operator in that record can be defined. For

Re: [Lazarus] global operator overloading

2013-02-26 Thread Xiangrong Fang
Hi Sven, My code below: === program project1; {$mode objfpc}{$H+} {$MODESWITCH advancedrecords} uses Classes; type TMyStringList = record StringList: TStringList; class operator (s1, s2: TMyStringList): Boolean; end; class operator

Re: [Lazarus] global operator overloading

2013-02-26 Thread Sven Barth
On 26.02.2013 15:30, Xiangrong Fang wrote: Hi Sven, My code below: === program project1; {$mode objfpc}{$H+} {$MODESWITCH advancedrecords} uses Classes; type TMyStringList = record StringList: TStringList; class operator (s1, s2:

Re: [Lazarus] global operator overloading

2013-02-26 Thread Sven Barth
On 26.02.2013 15:30, Xiangrong Fang wrote: Hi Sven, My code below: === program project1; {$mode objfpc}{$H+} {$MODESWITCH advancedrecords} uses Classes; type TMyStringList = record StringList: TStringList; class operator (s1, s2:

Re: [Lazarus] global operator overloading

2013-02-26 Thread Xiangrong Fang
Then, I wish to see 2.8 released :-D thanks. 2013/2/26 Sven Barth pascaldra...@googlemail.com On 26.02.2013 15:30, Xiangrong Fang wrote: Hi Sven, My code below: ==**= program project1; {$mode objfpc}{$H+} {$MODESWITCH advancedrecords} uses

Re: [Lazarus] global operator overloading

2013-02-26 Thread Sven Barth
On 26.02.2013 15:37, Xiangrong Fang wrote: Then, I wish to see 2.8 released :-D I don't, because I still have so many things I want to implement before that :P Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread Reimar Grabowski
On Tue, 26 Feb 2013 06:17:04 +0100 Michalis Kamburelis michalis.ka...@gmail.com wrote: What is weirder is that I can get multi-sampling on both these systems (both Radeon and NVidia) with a very similar multi-sampling code inside my Castle Game Engine TCastleWindow class (that directly uses

[Lazarus] Forward declare (modern) records [was: Re: global operator overloading]

2013-02-26 Thread ListMember
All three types, records, objects and classes have their purposes and uses and one can select the one that is most fitting in a given situation. Is it possible to forward declare records the way we can with classes? I mean, with classes, I can do this: TSecondClass = class; TFirstClass =

Re: [Lazarus] Forward declare (modern) records [was: Re: global operator overloading]

2013-02-26 Thread Sven Barth
On 26.02.2013 16:15, ListMember wrote: All three types, records, objects and classes have their purposes and uses and one can select the one that is most fitting in a given situation. Is it possible to forward declare records the way we can with classes? I mean, with classes, I can do this:

Re: [Lazarus] Configuration not quite right

2013-02-26 Thread Milan Baša
Dňa 25.02.2013 20:40, Leslie Turriff wrote / napísal(a): Hi, I'm just starting out with Free Pascal and Lazarus, and I need a bit of help. I've installed them in my OpenSuSE 12.2 system running on x86_64 hardware, using the version in the distribution repository (which I

Re: [Lazarus] Configuration not quite right

2013-02-26 Thread Mattias Gaertner
On Tue, 26 Feb 2013 16:21:30 +0100 Milan Baša min...@mail.t-com.sk wrote: Dňa 25.02.2013 20:40, Leslie Turriff wrote / napísal(a): Hi, I'm just starting out with Free Pascal and Lazarus, and I need a bit of help. I've installed them in my OpenSuSE 12.2 system running on x86_64

Re: [Lazarus] Forward declare (modern) records [was: Re: global operator overloading]

2013-02-26 Thread ListMember
On 2013-02-26 17:18, Sven Barth wrote: On 26.02.2013 16:15, ListMember wrote: All three types, records, objects and classes have their purposes and uses and one can select the one that is most fitting in a given situation. Is it possible to forward declare records the way we can with

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread Mattias Gaertner
On Tue, 26 Feb 2013 15:51:52 +0100 Reimar Grabowski reimg...@web.de wrote: On Tue, 26 Feb 2013 06:17:04 +0100 Michalis Kamburelis michalis.ka...@gmail.com wrote: What is weirder is that I can get multi-sampling on both these systems (both Radeon and NVidia) with a very similar

Re: [Lazarus] Forward declare (modern) records [was: Re: global operator overloading]

2013-02-26 Thread Jürgen Hestermann
Am 2013-02-26 16:15, schrieb ListMember: Is it possible to forward declare records the way we can with classes? Well, I know that you can do something like this: PTreeType= ^TreeType; TreeType = record ...; ...;

Re: [Lazarus] Forward declare (modern) records [was: Re: global operator overloading]

2013-02-26 Thread Sven Barth
On 26.02.2013 18:22, Jürgen Hestermann wrote: Am 2013-02-26 16:15, schrieb ListMember: Is it possible to forward declare records the way we can with classes? Well, I know that you can do something like this: PTreeType= ^TreeType; TreeType = record

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread Reimar Grabowski
On Tue, 26 Feb 2013 16:53:25 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: A quick look at the gtkglext-1.2.0 sources didn't reveal anything special about multisampling. It is very possible that no 'special' support is needed. The first noticeable thing of gtkglext code is the

Re: [Lazarus] ValueListEditor: feedback needed from Delphi users

2013-02-26 Thread Juha Manninen
On Tue, Feb 26, 2013 at 8:03 PM, Bart bartjun...@gmail.com wrote: Please only provide answer obtained by black box testing. Just build a Delpi app and see how it functions. Do NOT, I repeat do NOT, look at the Delphi source code. Our implementation needs to be clean. Just commenting on this

Re: [Lazarus] Configuration not quite right

2013-02-26 Thread Leslie Turriff
On Tuesday 26 February 2013 09:35:00 Mattias Gaertner wrote: On Tue, 26 Feb 2013 16:21:30 +0100 Milan Baša min...@mail.t-com.sk wrote: Dňa 25.02.2013 20:40, Leslie Turriff wrote / napísal(a): Hi, Any suggestions? I think /tmp/project1 does need superuser rights. Under OpenSuSE

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread Mattias Gaertner
On Tue, 26 Feb 2013 19:10:53 +0100 Reimar Grabowski reimg...@web.de wrote: On Tue, 26 Feb 2013 16:53:25 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: A quick look at the gtkglext-1.2.0 sources didn't reveal anything special about multisampling. It is very possible that no

Re: [Lazarus] Configuration not quite right

2013-02-26 Thread Mattias Gaertner
On Tue, 26 Feb 2013 12:33:54 -0600 Leslie Turriff jlturr...@centurytel.net wrote: On Tuesday 26 February 2013 09:35:00 Mattias Gaertner wrote: On Tue, 26 Feb 2013 16:21:30 +0100 Milan Baša min...@mail.t-com.sk wrote: Dňa 25.02.2013 20:40, Leslie Turriff wrote / napísal(a): Hi,

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread zeljko
On Tuesday 26 of February 2013 19:42:32 Mattias Gaertner wrote: There is still no opengl widget for LCL QT. AFAIK it requires a QT expert. Only bindings are missing. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] DataSource State not always current

2013-02-26 Thread Alejandro Gonzalo
In Delphi 3.02 this ALWAYS works, but only sometimes with Laz 1.0.6 for Win7 64bit w/ADS database:   with DBNavigator1.DataSource do if State in [dsEdit, dsInsert] then    This can be fixed in Laz by adding a variable to the var section like so: myState : TDataSetState;   And replacing the

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread Den Jean
On Tuesday, February 26, 2013 08:07:16 PM zeljko wrote: Only bindings are missing. it is a lot of work :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Patch question.

2013-02-26 Thread Donald Ziesig
Hi All! I have finished the code needed to use xml to specify templates for some of the code completion functions. I was about to create a patch till I remembered that the xml file is in ~/.lazarus. AFAICT this will not go into the patch, but should be put into .lazarus on install or build.

Re: [Lazarus] Patch question.

2013-02-26 Thread Mattias Gaertner
On Tue, 26 Feb 2013 17:05:59 -0500 Donald Ziesig don...@ziesig.org wrote: Hi All! I have finished the code needed to use xml to specify templates for some of the code completion functions. I was about to create a patch till I remembered that the xml file is in ~/.lazarus. AFAICT this

Re: [Lazarus] Forward declare (modern) records [was: Re: global operator overloading]

2013-02-26 Thread Hans-Peter Diettrich
Sven Barth schrieb: He wants to have this supported: === example begin === type SomeType1 = record; SomeType2 = record; SomeType1 = record // ... property SomeProperty: SomeType2 read ... write ... end; SomeType2 = record // ... property SomeProperty: SomeType1

Re: [Lazarus] Patch question.

2013-02-26 Thread Donald Ziesig
On 02/26/2013 05:17 PM, Mattias Gaertner wrote: On Tue, 26 Feb 2013 17:05:59 -0500 Donald Ziesig don...@ziesig.org wrote: Hi All! I have finished the code needed to use xml to specify templates for some of the code completion functions. I was about to create a patch till I remembered that

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-26 Thread Den Jean
On Tuesday, February 26, 2013 09:29:04 PM Den Jean wrote: it is a lot of work This is very alpha and after lots of hacks to get this far. FPC Qt4 OpenGL: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/V2.6RC2/splitbuild-qt4pas-V2.6RC2_Qt4.8.4.tar.gz $ grep qgl -i qt4.pas | wc -l 545 --

[Lazarus] CRM and MVC

2013-02-26 Thread Pablo R. Digonzelli
Hi all, i am interested on Lazarus. I want to know if there are ORMs for it? Which is the better in your opinion. Other question is if there are MVC or MVP frameworks for Lazarus. Any answer will be apreciated .. Sorry for my english. TIA Ing. Pablo Digonzelli Sofware Solutions IP

[Lazarus] TDD

2013-02-26 Thread Pablo R. Digonzelli
Hi , another question . Wich are TDD frameworks for Lazarus? TIA Ing. Pablo Digonzelli Sofware Solutions IP Soluciones SRL 25 de Mayo 521. Entrepiso A email: pdigonze...@softsargentina.com email: pdigonze...@gmail.com twitter: @pdigonzelli Tel: 0381 4227378 Cel: 0381 155982714 --

[Lazarus] Recent Problem with program compile

2013-02-26 Thread Andrew Brunner
This process is called my a linux service. Required Packages only list as LCLBase and LazUtils. When I remove LCLBase the project compiles. However, if I follow the wiki suggestions I compile just fine but the program terminates abnormally when launched as a process from the LazDaemon.

Re: [Lazarus] TDD

2013-02-26 Thread Vincent Snijders
2013/2/27 Pablo R. Digonzelli pdigonze...@softsargentina.com: Hi , another question . Wich are TDD frameworks for Lazarus? http://wiki.lazarus.freepascal.org/fpcunit There are others too. Vincent -- ___ Lazarus mailing list

[Lazarus] default visibility for class members

2013-02-26 Thread xrfang
Hi All, My class looks like this: TMyClass = class   FField1: Integer; private   FField2: string; public   FField3: string; end; Question is, is FField1 private or public or protected?  For all lcl classes, I see a lot of fields above private, it looks like they are same as public,  because I