[fpc-pascal] [PATCH] Re: Imagemagick: magickwand doesn't convert to TIFF 1 bit

2014-09-15 Thread Reinier Olislagers
On 15/09/2014 09:43, Reinier Olislagers wrote: > Mantis issue > http://mantis.freepascal.org/view.php?id=26723 Test case and patch attached to bugtracker issue. Thanks, Reinier ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread vfclists .
On 13 September 2014 20:29, vfclists . wrote: > > > On 13 September 2014 20:02, Sven Barth > wrote: > >> On 13.09.2014 20:13, vfclists . wrote: >> >>> According to the docs the with statement when used with mulltiple >>> objects only works with the last parameter. >>> >>> >>> The statement >>> >

Re: [fpc-pascal] console gdb in mac

2014-09-15 Thread Jonas Maebe
On 08/09/14 17:34, Joost van der Sluis wrote: > On 09/07/2014 05:19 PM, Felipe Monteiro de Carvalho wrote: >> How can I read the value of field FParent which is located in object >> "Self" ? > > That's not that difficult: > > p this > p this.fparent You can also use "self". You don't even have t

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread johanns
On Sun, Sep 14, 2014 at 02:30:01PM +0200, Marco van de Voort wrote: In our previous episode, J?rgen Hestermann said: > - > d:=TreeRoot.SubDirs[Low(TreeRoot.SubDirs)]; // local var d > d^.DirLogged := true; > d^.DirHatFocus

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread Sven Barth
Am 15.09.2014 09:08 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2014-09-14 13:30, Marco van de Voort wrote: > > WITH doesn't, and you risk that if your class or one of its ancestor has > > such property, and your error goes unnoticed. > > +1 > > Not to mention that you can'

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread Mark Morgan Lloyd
Bernd Oppolzer wrote: PL/1 was designed in the mid 60s, and Wirth of course knew about PL/1, because he was at IBM at the time, and of course he was aware of the problems and pitfalls of PL/1. I didn't know that Wirth had been directly associated with IBM. I did know that while at Stanford h

Re: [fpc-pascal] Optimal number of threads for SMP

2014-09-15 Thread Marco van de Voort
In our previous episode, Xiangrong Fang said: > If my application needs SPEED, i.e. take full advantage of CPU > capabilities, and the application has no I/O operation at all (neither disk > nor network), it seems no need to create threads more than the number of > CPU cores ?hyper-threads)? > > A

[fpc-pascal] Optimal number of threads for SMP

2014-09-15 Thread Xiangrong Fang
Hi All, If my application needs SPEED, i.e. take full advantage of CPU capabilities, and the application has no I/O operation at all (neither disk nor network), it seems no need to create threads more than the number of CPU cores (hyper-threads)? Am I right? Xiangrong ___

Re: [fpc-pascal] return 8 byte of return as function result via register

2014-09-15 Thread Michael Schnell
On 09/13/2014 12:59 AM, Dennis Poon wrote: I am trying to use an external C++ dll Usually you can't use (pure) C++ DLLs. DLLS need to have a "flat" (ANSI C) interface using standard data types and calling conventions. I suppose with x86/64 the return value in fact is 8 bytes in a single regis

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: As already mentioned, human refactoring of WITH statements can, and has, caused lots of debugging issues afterwards. If Dijkstra had written a letter to the CACM cautioning against the With statement, I wonder whether Wirth would have headlined it "With Statement Con

Re: [fpc-pascal] Imagemagick: magickwand doesn't convert to TIFF 1 bit

2014-09-15 Thread Reinier Olislagers
On 15/09/2014 00:54, José Mejuto wrote: > El 13/09/2014 17:34, Reinier Olislagers escribió: > For some reason the bindings in Pascal, and/or the wand bindings (maybe > internally to imagemagick) are broken. Mmmm, if the wand bindings were broken that would surely have lead to many more people compl

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread Graeme Geldenhuys
On 2014-09-14 13:30, Marco van de Voort wrote: > WITH doesn't, and you risk that if your class or one of its ancestor has > such property, and your error goes unnoticed. +1 Not to mention that you can't use tooltip debugging when it comes to the WITH statement - at least this was the case last ti

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread Graeme Geldenhuys
On 2014-09-14 15:41, Vojtěch Čihák wrote: > because Editor is also public property of TStringGrid. Here would be > solution to rename parameter to "AEditor". Yes, that is a classic issue I have often come across. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread Graeme Geldenhuys
On 2014-09-14 11:49, Sven Barth wrote: > Though to be honest Lazarus handles with-statements in context of debugging > much more gracefully than Delphi... We all know Lazarus is way better that Delphi - so that's always good to know. :) As already mentioned, human refactoring of WITH statements c

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-15 Thread Tomas Hajny
On Mon, September 15, 2014 07:55, Sven Barth wrote: > On 14.09.2014 18:05, Philippe wrote: >> someone wrote about a better performance using "with". is that true? >> even with a simple pointer as in: . . > This is the relevant code generated for TestWith: > > === asm begin === > > # [28] with p^