Re: [fpc-pascal] class of a class function

2012-08-07 Thread CA Gorski
t I can do MyVar:=@TSomeClass(TSomeClass).MyClassFunc; which solves all problems (so far). :) On 07.08.2012 11:52, Jonas Maebe wrote: CA Gorski wrote on Tue, 07 Aug 2012: I tried that already, but at least in my case Self is Nil inside the class function. Compiler (fpc 2.6.1 ) bug? It does

Re: [fpc-pascal] class of a class function

2012-08-07 Thread CA Gorski
I tried that already, but at least in my case Self is Nil inside the class function. Compiler (fpc 2.6.1 ) bug? On 07.08.2012 11:22, Jonas Maebe wrote: CA Gorski wrote on Tue, 07 Aug 2012: How can I get the actual class a class function is called in? Via "self"

[fpc-pascal] class of a class function

2012-08-07 Thread CA Gorski
How can I get the actual class a class function is called in? TSomething = class class function GetMyClass: TClass; end; TOtherthing = class(TSomething) end; ... class function TSomething.GetMyClass: TClass; begin Result:=???; end; ... var MyVar: TClass; MyVar:=TOtherthing.Get

[fpc-pascal] missing library name in external declaration in ascdef.inc

2012-07-27 Thread CA Gorski
There seems to be 'kernel32' missing in two functions in ascdef.inc of the rtl/win/wininc: FindFirstFileEx and FindFirstFileTransacted --- fpc/trunk/rtl/win/wininc/ascdef.inc Fr Jun 8 18:22:45 2012 +++ fpc/trunk/rtl/win/wininc/ascdef.my.inc Fr Jul 27 23:31:01 2012 @@ -474,10 +474,10 @@ fu

Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread CA Gorski
On 15.07.2012 15:35, Jonas Maebe wrote: That seems to be a bug in ObjFPC mode procvar support. It works in Delphi mode. Please always include a complete test program in the future, so that people wanting to help you don't have to write multiple test programs themselves to figure out what the

Re: [fpc-pascal] Variable of class method type of function

2012-07-15 Thread CA Gorski
But then I get the following error trying to use the variable: Error: Incompatible types: got "function(AnsiString):Boolean of object;Register>" expected "variable type of function(AnsiString):Boolean of object;Register>" On 15.07.2012 14:13, Jonas Maebe wrote: On

[fpc-pascal] Variable of class method type of function

2012-07-15 Thread CA Gorski
How to declare a variable of class method type of function? ... var MyVar: function(AParam: string): boolean of class; ... gives an error using FPC 2.6.1 (Win64). ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.or

[fpc-pascal] Why PIC as default for darwin?

2010-06-02 Thread CA Gorski
What is the reason for having PIC enabled for darwin? I have read that it slows down and is only useful for libs, if at all. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] VirtualTreeview Mac (Carbon)

2010-06-01 Thread CA Gorski
And if so, what is to do? Remove the dependencies on lclextensions from your port? Yes Ok, I will try... Meantime I tried to compile lclextensions against gtk2 but the compiler still uses includes from include/carbon sub-folder. Why? ___

Re: [fpc-pascal] VirtualTreeview Mac (Carbon)

2010-06-01 Thread CA Gorski
Lazarus/LCL has added most of the needed functions, but it's not released yet. I am using the daily snapshot anyway. Are they in there? And if so, what is to do? Remove the dependencies on lclextensions from your port? ___ fpc-pascal maillist -

Re: [fpc-pascal] VirtualTreeview Mac (Carbon)

2010-05-31 Thread CA Gorski
or should one change the later (VT) to use FCL/LCL functions so that it does not rely on Windows functions anymore? Later Why later and not immediately? BTW: use lazarus mail list How to? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

[fpc-pascal] VirtualTreeview Mac (Carbon)

2010-05-31 Thread CA Gorski
Has anybody tried to compile the new VT port which requires lclextensions (Luipack) on Mac OS with target widget Carbon? I did and wasn't succesfull. Problem is, you can't compile lclextensions. Since I am pretty new to FPC my question is, is it the right way to generate a package (like lclexten

[fpc-pascal] Anything like TRichView

2010-05-26 Thread CA Gorski
Is there anything like TRichView (www.trichview.com) for Lazarus/FPC? Doesn't need to be as complex as that one. Can be much simpler, but TMemo is too simple. ;) Thanks, CA ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freep

[fpc-pascal] Anything like TRichView?

2010-05-26 Thread CA Gorski
Is there anything like TRichView (www.trichview.com) for Lazarus/FPC? Doesn't need to be as complex as that one. Can be much simpler, but TMemo is too simple. ;) Thanks, CA ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa