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
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"
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
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
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
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
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
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
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?
___
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 -
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.
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
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
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
14 matches
Mail list logo