On 23 Feb 2012, at 17:17, Everton Vieira wrote:
> Is there any plans to implement public procedures/function of a class that
> can be used without been necessary to create the class?
Those already exist. They are called "class methods". See
http://www.freepascal.org/docs-html/ref/refsu27.html
On Fri, 16 Jul 2010, Helmut Hartl wrote:
Am 16.07.10 12:46, schrieb Michael Van Canneyt:
Always learning something new.
One is never too old to learn :-)
Michael.
But one is always able to age faster,
while boldly going to where no man has gone
baldly before :-) (spelling intentional)
Wh
Am 16.07.10 12:46, schrieb Michael Van Canneyt:
Always learning something new.
One is never too old to learn :-)
Michael.
But one is always able to age faster,
while boldly going to where no man has gone
baldly before :-) (spelling intentional)
While testing with a simplified usage patt
On Fri, 16 Jul 2010, Reimar Grabowski wrote:
On Fri, 16 Jul 2010 10:48:19 +0200 (CEST)
Michael Van Canneyt wrote:
Var
O : MyObject;
begin
O.MySomething;
end.
Interesting that you can call them on not initialized objects.
I always assumed that they had to be called in a static way:
Helmut Hartl wrote on Fri, 16 Jul 2010:
Am 16.07.10 10:48, schrieb Michael Van Canneyt:
It exists already, but is called 'static'
Thank you for clarification, in a quick test it seem to work for my use case.
When is it likeley that this feature will arrive in 2.4.x ?
In 2.4.x, you have to u
Am 16.07.10 10:48, schrieb Michael Van Canneyt:
It exists already, but is called 'static'
Thank you for clarification, in a quick test it seem to work for my use
case.
When is it likeley that this feature will arrive in 2.4.x ?
helmut
___
fpc-pas
On Fri, 16 Jul 2010 10:48:19 +0200 (CEST)
Michael Van Canneyt wrote:
> Var
>O : MyObject;
>
> begin
>O.MySomething;
> end.
Interesting that you can call them on not initialized objects.
I always assumed that they had to be called in a static way:
begin
MyObject.MySomething;
end.
Alwa
It exists already, but is called 'static'
program testso;
Type
MyObject = Object
procedure MySomething; static;
end;
Procedure MyObject.MySomething;
begin
Writeln('OK');
end;
Var
O : MyObject;
begin
O.MySomething;
end.
Michael.
On Fri, 16 Jul 2010, Helmut Hartl wrote:
Hel
> I am trying to port the DUnit test framework to fpc and lazarus, see for
> more info
> http://lazarus-ccr.sourceforge.net/index.php?wiki=DunitProject.
I'll take a look
> The testframework unit compiles
I was able to compile it too, but I have still a lot of work to make it work I
guess ;-)
> and
On Fri, 14 Nov 2003 09:59:53 +0100 (CET)
[EMAIL PROTECTED] (Marco van de Voort) wrote:
> > Btw I was thinking about beginning a port of the JUnit testing
> > framework to Free Pascal, as I'm no longer feeling safe without a
> > unit testing net when programming. Could it be interesting? Or it's
>
> The typecast is incorrect. It should be
>
> Result:=(AssignPipe(..)<>-1);
Thank you.
> I'll fix this later this morning, thanks for reporting.
It's a pleasure :-) Thank you for the fix.
>Delphi port of JUnit called DUnit, but I doubt it will work,
> it meddles too much with the internals of obje
> > See also http://www.stack.nl/~marcov/buildfaq.pdf for some pointers about
> > building the FPC cvs.
> Thank you for the tutorial, it helped me a lot. It was exciting to see the
> ;
(unit Unix is something that I'm working on atm)
> I did a simple typecast:
> Result := Boolean(AssignPipe (
> See also http://www.stack.nl/~marcov/buildfaq.pdf for some pointers about
> building the FPC cvs.
Thank you for the tutorial, it helped me a lot. It was exciting to see the
compiler building process on the screen :-) So now I have a 1.9.1 for i386
Linux!
I have encountered a problem when doin
> > Free Pascal Compiler version 1.9.1
> >
> > Compiler Date : 2003/11/11
> > Compiler Target: i386
> >
> > on FreeBSD
> > So it could be it that is already fixed after 1.9.0
> Great, :-)
> One more question, where can I find the version 1.9.1 ?
Versions with an odd third numbers are development
> Hmm, here it returns
>
> -bash-2.05b$ ./bugtest
> TMyObject
> -bash-2.05b$
>
> with
>
> Free Pascal Compiler version 1.9.1
>
> Compiler Date : 2003/11/11
> Compiler Target: i386
>
> on FreeBSD
> So it could be it that is already fixed after 1.9.0
Great, :-)
One more question, where can I find th
> When porting a Kylix/Delphi project to FPC (version 1.9.0 Linux) I've
> encountered this small problem using class methods:
> When I pass an object instance as parameter in class methods I have a
> sigsev
> like in this example
>
> Am I doing something wrong or is a bug I've found?
It was a bug
> When porting a Kylix/Delphi project to FPC (version 1.9.0 Linux) I've
> encountered this small problem using class methods:
> When I pass an object instance as parameter in class methods I have a sigsev
> like in this example
Hmm, here it returns
-bash-2.05b$ ./bugtest
TMyObject
-bash-2.05b$
17 matches
Mail list logo