Re: [fpc-pascal] a queried interface destroyed after writeln the address of it

2012-08-23 Thread ZAN DoYe
thank you:) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Martin wrote: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool "pas2ut" which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least

Re: [fpc-pascal] a queried interface destroyed after writeln the address of it

2012-08-23 Thread Jonas Maebe
ZAN DoYe wrote on Thu, 23 Aug 2012: I don't know if it's an undefined behavior or a bug. The environment is fpc 2.6-bugfix branch x86-64 linux. See the details in the attached code Your code is wrong: you have to assign the result of cm.create to an interface variable instead of to a class

Re: [fpc-pascal] Easier fpmake

2012-08-23 Thread michael . vancanneyt
On Wed, 22 Aug 2012, Tomas Hajny wrote: On 22 Aug 12, at 19:03, Michael Van Canneyt wrote: Hi Michael, As you know, FPC uses fpmake to compile everything in packages. As I've been steadily improving fcl-passrc for fpdoc, (it's now almost on par with the compiler, barring errors and assemb

[fpc-pascal] Re: Unit testing aid...

2012-08-23 Thread Reinier Olislagers
On 23-8-2012 9:36, Sven Barth wrote: > Am 22.08.2012 21:56, schrieb Martin: >> make.exe[3]: Entering directory `C:/FPC/SVN/trunc/utils/pas2ut' >> C:/FPC/SVN/trunk_build/gmkdir.exe -p units/i386-win32 >> C:/FPC/SVN/trunc/compiler/ppc386.exe -XX -CX -Ur -Xs -O2 -n -O2 -S2h >> -FuC:/FPC/SVN/trunc/rtl/

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread Sven Barth
Am 22.08.2012 21:56, schrieb Martin: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool "pas2ut" which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it

Re: [fpc-pascal] Unit testing aid...

2012-08-23 Thread Sven Barth
Am 22.08.2012 21:56, schrieb Martin: On 22/08/2012 18:08, Michael Van Canneyt wrote: Hi, for those that do unit testing, I committed a small tool "pas2ut" which analyses a unit, and creates a unit with a number of (empty) test cases. Obviously, the unit should be compileable (well, at least it