Re: [fpc-pascal] Specifying a Interface type via $Interfaces

2007-10-12 Thread Dean Zobec
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

Re: [fpc-pascal] Specifying a Interface type via $Interfaces

2007-10-12 Thread Dean Zobec
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

Re: [fpc-pascal] Specifying a Interface type via $Interfaces

2007-10-11 Thread Dean Zobec
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

Re: [fpc-pascal] Specifying a Interface type via $Interfaces

2007-10-11 Thread Dean Zobec
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 ___

[fpc-pascal] RE: fpc-pascal Digest, Vol 34, Issue 53

2007-06-21 Thread Dean Hill
> 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

Re: [fpc-pascal] fpcunit documentation?

2007-06-13 Thread Dean Zobec
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

Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Dean Zobec
> 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

Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Dean Zobec
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

Re: [fpc-pascal] FPCUnit: TestSuiteName vs TestName

2007-05-21 Thread Dean Zobec
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

Re: [fpc-pascal] Reduce size in binary generated by ppc

2007-03-16 Thread Dean Zobec
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

Re: [fpc-pascal] sqldb firebird on linux can't find client lib

2007-02-15 Thread Dean Zobec
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

Re: [fpc-pascal] New stylesheet for fpcunit xml reports

2007-02-03 Thread Dean Zobec
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

Re: [fpc-pascal] New stylesheet for fpcunit xml reports

2007-02-03 Thread Dean Zobec
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,

Re: [fpc-pascal] Implementing a true Singleton - Can we decrease the visibility of a method?

2006-12-08 Thread Dean Zobec
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

Re: [fpc-pascal] Re: fpUnit - AssertEquals gives Access violation

2006-10-07 Thread Dean Zobec
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

Re: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-27 Thread Dean Zobec
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

Re: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-27 Thread Dean Zobec
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)

Re: [fpc-pascal]Book....

2006-09-13 Thread Dean Zobec
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

Re: [fpc-pascal] presenting fpunit test results

2006-09-08 Thread Dean Zobec
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

Re: [fpc-pascal] data driven fpc unit tests

2006-08-18 Thread Dean Zobec
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

Re: [fpc-pascal] fpcUnit testing Exceptions

2006-07-15 Thread Dean Zobec
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

Re: [fpc-pascal] fpcUnit testing Exceptions

2006-07-14 Thread Dean Zobec
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

Re: [fpc-pascal] Comparing version numbers

2006-06-03 Thread Dean Zobec
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

Re: [fpc-pascal] for..in loops?

2005-11-20 Thread Dean Zobec
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

Re: [fpc-pascal] for..in loops?

2005-11-20 Thread Dean Zobec
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

Re: [fpc-pascal] Lazarus and FPC integration

2005-10-30 Thread Dean Zobec
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

Re: [fpc-pascal] FPCUnit article/tutorial online.

2005-10-11 Thread Dean Zobec
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

Re: [fpc-pascal] FPCUnit article/tutorial online.

2005-10-10 Thread Dean Zobec
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

Re: [fpc-pascal] unit testing framework for fpc

2005-06-27 Thread Dean Zobec
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 _

[fpc-pascal] memory leaks with com interfaces?

2004-11-13 Thread Dean Zobec
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

Re: [fpc-pascal] how to locate address of method name table (cvs build)

2004-10-24 Thread Dean Zobec
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

[fpc-pascal] how to locate address of method name table (cvs build)

2004-10-22 Thread Dean Zobec
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 __

[fpc-pascal] problems with MethodAddress (objpas) fresh cvs build

2004-10-17 Thread Dean Zobec
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

Re: [fpc-pascal] Free Pascal soom will land in Italy!

2004-10-09 Thread Dean Zobec
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 (

Re: [fpc-pascal]Delphi "9" language features...

2004-08-13 Thread Dean Zobec
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.

[fpc-pascal]no refcounted interfaces

2004-04-08 Thread Dean Zobec
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

Re: [fpc-pascal]TObjectList.free

2004-02-15 Thread Dean Zobec
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

Re: [fpc-pascal]problem linking with c

2003-12-24 Thread Dean Zobec
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

[fpc-pascal]problem linking with c

2003-12-23 Thread Dean Zobec
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

Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-14 Thread Dean Zobec
, I think you'll have no problems. :-) Ciao, Dean ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-14 Thread Dean Zobec
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

Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-14 Thread Dean Zobec
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

Re: [fpc-pascal]class methods in FPC version 1.9.0

2003-11-13 Thread Dean Zobec
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

[fpc-pascal]class methods in FPC version 1.9.0

2003-11-13 Thread dean
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