Re: [fpc-pascal] Trunk Win64 compilation problems: objects.ppu - commit 26398?

2014-01-06 Thread Reinier Olislagers
On 06/01/2014 12:58, Marco van de Voort wrote: > In our previous episode, Reinier Olislagers said: >> Perhaps something to do with commit 26398 >> * Initial active version of >>rtl-extra : objects matrix ucomplex >>rtl-objpas: convutil(s) dateutil(s) stdconvs variants varutils > > Fixed.

Re: [fpc-pascal] Trunk Win64 compilation problems: objects.ppu - commit 26398?

2014-01-06 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: > Hitting compilation problems on trunk with fpcup. > > cp.exe: C:/development/fpctrunk/rtl/units/x86_64-win64/objects.ppu: No > such file or directory > make.exe[4]: *** [fpc_install] Error 1 > > Full log at > http://pastebin.com/wunVysdX > > Pe

[fpc-pascal] Trunk Win64 compilation problems: objects.ppu - commit 26398?

2014-01-06 Thread Reinier Olislagers
Hitting compilation problems on trunk with fpcup. cp.exe: C:/development/fpctrunk/rtl/units/x86_64-win64/objects.ppu: No such file or directory make.exe[4]: *** [fpc_install] Error 1 Full log at http://pastebin.com/wunVysdX Perhaps something to do with commit 26398 * Initial active version of

Re: [fpc-pascal] Checking assignment compatibility

2014-01-06 Thread Mark Morgan Lloyd
Jonas Maebe wrote: Assert(TypeOf(qt) = TypeOf(result)); This is always true. Everything descends from TOBject. But assuming the result is not TObject, it would be Assert((qt=Nil) or (qt.Inheritsfrom(TheResultClass)) So again skipping the nil check for simplicity, this compiles but are the se

Re: [fpc-pascal] Checking assignment compatibility

2014-01-06 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Mon, 6 Jan 2014, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: On Sun, 5 Jan 2014, Mark Morgan Lloyd wrote: Simulating a C-style conditional, I can do this function tf(const q: qword; const qt, qf: TObject): TObject; inline; begin Assert(TypeOf(qt) = Ty

Re: [fpc-pascal] Checking assignment compatibility

2014-01-06 Thread Jonas Maebe
On 06 Jan 2014, at 10:31, Michael Van Canneyt wrote: On Mon, 6 Jan 2014, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: On Sun, 5 Jan 2014, Mark Morgan Lloyd wrote: Simulating a C-style conditional, I can do this function tf(const q: qword; const qt, qf: TObject): TObject; inline; b

Re: [fpc-pascal] Checking assignment compatibility

2014-01-06 Thread Michael Van Canneyt
On Mon, 6 Jan 2014, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: On Sun, 5 Jan 2014, Mark Morgan Lloyd wrote: Simulating a C-style conditional, I can do this function tf(const q: qword; const qt, qf: TObject): TObject; inline; begin Assert(TypeOf(qt) = TypeOf(result)); This is a

Re: [fpc-pascal] Checking assignment compatibility

2014-01-06 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Sun, 5 Jan 2014, Mark Morgan Lloyd wrote: Simulating a C-style conditional, I can do this function tf(const q: qword; const qt, qf: TObject): TObject; inline; begin Assert(TypeOf(qt) = TypeOf(result)); This is always true. Everything descends from TOBject. Bu

Re: [fpc-pascal] Checking assignment compatibility

2014-01-06 Thread Michael Van Canneyt
On Sun, 5 Jan 2014, Mark Morgan Lloyd wrote: Simulating a C-style conditional, I can do this function tf(const q: qword; const qt, qf: TObject): TObject; inline; begin Assert(TypeOf(qt) = TypeOf(result)); This is always true. Everything descends from TOBject. But assuming the result is n