2007/10/11, Graeme Geldenhuys <[EMAIL PROTECTED]>:
> On 11/10/2007, Dean Zobec <[EMAIL PROTECTED]> wrote:
> > > interface types. Could somebody please explain the difference. And
> > > why would I use one over the other?
> > Corba interfaces are not refer
2007/10/11, Graeme Geldenhuys <[EMAIL PROTECTED]>:
> On 11/10/2007, Dean Zobec <[EMAIL PROTECTED]> wrote:
> > > interface types. Could somebody please explain the difference. And
> > > why would I use one over the other?
> > Corba interfaces are not refer
ypes. All my software target multiple platforms. I mostly
> develop under Linux though.
No it's mainly a matter of reference counting
>
>
> Anybody got some good links on information about Interfaces? I'm
> looking for some nice tutorials if possible.
I'll try to f
nce is about time life:
> COM uses ref count
> CORBA should be somethink like garbage collection
There's no garbage collection, you have to free the object instance
explicitly with the
Corba type of interfaces in FPC. Corba interfaces do not descend from IUnknown.
Dean
___
> No, it won't, "test" here refers to the function result variable.
Is that the correct behaviour? I thought scope would be applied outwards
so, first it would look at local procedures, then methods of the same class
and lastly glob
ionality has not changed at all
since that, and the article is a good tutorial about unit testing using
the fpcunit framework.
Anyway, just ask here if you have specific questions about fpcunit and
well'answer you as always.
Thank you,
Dean
___
fpc-pasc
> We'll get there. Slowly but surely.
I had no doubt.
It's a good news for me, as there's still hope I'll be able to help then! :)
Thank you,
Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I wrote myself the framework in pascal, following the java
code, I was able to understand it completely (and still I'm convinced
that after so much refactoring on the junit side, some indirections were
redundant).
regards,
Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
strictly to the JUnit framework as it was a standard
when the FPCUnit port was created, and no additional documentation of
the framework was needed (you could always refer to the JUnit
documentation and practice, a lot of articles and books were written on
the subject).
Still, it's n
Jose Pascual pravi:
> Hi everyone,
>
> How is it possible to reduce the size for binary generated by ppc?
>
http://wiki.freepascal.org/Size_Matters
Ciao,
Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.fr
ied to
do a client-only installation, by installing on the client machine only
the relevant libs and making the softlinks as explained in the Firebird
docs. But I was not able to connect with sqldb. Then I did a full
Firebird install and then the connection was ok.
Dean.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Graeme,
Ok, I'll bite.. ;-)
I spoke to Dean the other day and he mentioned a new update for
FPCUnit will be sumbitted shortly. I didn't want to start on the new
XSLT stylesheet before I know what format the XML is in.
Dean, if you can confirm that the new xml format with nested
Graeme,
I spoke to Dean the other day and he mentioned a new update for
FPCUnit will be sumbitted shortly. I didn't want to start on the new
XSLT stylesheet before I know what format the XML is in.
Dean, if you can confirm that the new xml format with nested test
suits are still as is,
nation:
http://www-128.ibm.com/developerworks/library/co-single.html
Regards,
Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
CUNIT$_Ld19 ()
> ---Type to continue, or q to quit---
> #19 0x0821b4cb in FPCUNIT_TTESTSUITE_$__RUN$TTESTRESULT ()
> #20 0x0007 in ?? ()
> #21 0xb7a7cb68 in ?? ()
> #22 0xb7a77808 in ?? ()
> #23 0x0000 in ?? ()
> (gdb)
>
Hmm, no idea where the problem is, can you
ner (approx.the number of the elements you are going to store
or more), you can test it with different hash functions and see through
the statistics which one is better (the longer the chains i.e. more void
slots, the longer the fetch times).
Dean
___
fpc-p
l
give you all the assistance that you need. I'll be glad to receive some
feedback as usual.
Regards,
Dean
unit testfphashtable;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpcunit, testutils, testregistry, contnrs;
type
{ TTestHtNode }
TTestHtNode = class(TTestCase)
pplies to Free Pascal as well:
http://www.oreilly.com/catalog/delphi/chapter/ch02.html
IMO It's the best short guide on the Pascal oop model.
Ciao, Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
x27;m investigating
how to best achieve this, I would use lnet for the networking part.
Ciao, Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
you know how I can create data driven tests, so that it will display
> the test results of the second test, even if the first test fails.
>
> Vincent
Yes, there is an elegant solution. Joost has already asked me the same
question two months ago and I've prepared in that occasion a sm
Object).
I would create a procedure in the TTestCase class that would internaly
access this property and pass this procedure instead.
Regards,
Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ts/asserttest.pp):
procedure TAssertTest.TestAssertNull;
var
obj: TObject;
begin
AssertNull(nil);
obj := TObject.Create;
try
AssertNull(obj);
except
on E: EAssertionFailedError do
begin
obj.Free;
Exit;
end;
end;
obj.Free;
Fail('failure: obj is not
ctice, written by Kent Beck and
Erich Gamma:
http://junit.sourceforge.net/doc/testinfected/testing.htm
See also the JUnit website
http://www.junit.org/index.htm
for more articles on the subject.
To get you started with unit testing with FPC:
http://www.freepascal.org
with refcounted interfaces in a demo
see
http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/fcl/fpcunit/exampletests/money.pp
but still doing
a + b or a.add(b) it's not that different and maybe the second is clearer;
Ciao, Dean
___
fpc-pascal mai
sugar issues.
Look to next Pascal language enhancements
in Delphi-2006... (like operator overloads or class variables...)
we already have them in free pascal for a couple of years iirc and I've never
used them.
Ciao,
Dean
___
fpc-pasca
me refactoring tools: Lazarus has a
wonderful object oriented framework for writing plugins, so we all can
feel free to contribute to add them. It's not a Lazarus limit imho.
Ciao, Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
int of view, with many examples, I suggest this:
Pragmatic Unit Testing
in Java with JUnit
by Andy Hunt and Dave Thomas
Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
it, as I do, it's a good thing in my opinion. But I'm
convinced that there's not one true way of writing good quality
software, every one has to find the one best suited to his needs.
Dean
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
t/ide/fpcunitide.lpk
Then you can create a new unit test application with the menu:
File>New>Project>FPCUnit Application(or FPCUnit Console application)
You can add a new test case template by selecting
File>New>File>FPCUnit TestCase
Dean
_
5 of moneyleak.pp
What am I doing wrong?
Thank you in advance for any help,
Regards,
Dean Zobec
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
s not work in 1.9.5 anymore:
>
> It was a recently introduced bug, Fixed
>
> Peter
Thank you for the prompt fix Peter. I've just rebuilt the compiler and it's
all ok now.
Ciao,
Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ing : ',
longint(TTestCaseTest.MethodAddress('TestAsString')));
writeln(Assigned(GetMethodNameTableAddress(TTestCaseTest)));
end.
The function GetMethodNameTableAddress allways returns nil. Any idea about how
to fix it?
Ciao,
Dean
__
ing');
end;
begin
writeln('Address of TestSetUp : ',
longint(TTestCaseTest.MethodAddress('TestSetUp')));
writeln('Address of TestAsString : ',
longint(TTestCaseTest.MethodAddress('TestAsString')));
end.
Architecture:
[EMAIL PROTECTED] dean]$ unam
s from Delphi and translated the
Junit core testing framework from Java in a day or too:
http://camelos.sourceforge.net/fpcUnit.html , so,
no doubt for me that FPC is mature for serious programming.
If you need help for your article or you need a review, just ask (
would not implement it this way :-).
TStringList is a cute class (I like it very much) and is an swiss army
knife for Delphi, but nothing more, there are cases where other
containers could do better.
Where are Hash Tables, B-Trees, etc? A simple interface for lists is
not an innovation IMHO.
try
...use MyRef...
finally
MyRef.AsObject.Free;
MyRef := nil;
end;
end;
Any Idea of a solution in free pascal?
Ciao, Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
scendant of TList at
all. TList was not designed to be an ancestor class like TStrings for
example. They would be better off creating TObjectList (derived from TObject
and not TList) as a wrapper class around the TList.
I'm happy I can count on you for things like that.
The more I work wi
his tools.
You know, I'm coming from Delphi and Kylix, one of the 'click and run' newbies
;) and every day I'm discovering a new world.
Merry Christmas,
Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
r while linking
Closing script ppas.sh
What am I doing wrong?
Another question: is fpc compatible with C++?
Thanks in advance,
Ciao, Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
, I think you'll have no
problems. :-)
Ciao, Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
n http://www.bigattichouse.com/qtest.php, but I'm much more
oriented towards a console testing framework.
I'll try to study all of the designs more closely.
Ciao, Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
rt 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 been already done?
Ciao, Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
reat, :-)
One more question, where can I find the version 1.9.1 ? What would you suggest
me as the best way to be up to date ? I just checked out the cvs tree, should
I update it once in a while and build the compiler? Any instructions
available?
Thanks again to all of
mber(12345);
end.
works ok in FPC
Am I doing something wrong or is a bug I've found?
Any ideas?
Ciao, Dean
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
44 matches
Mail list logo