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

2014-09-16 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

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

2014-09-16 Thread Frederic Da Vitoria
2014-09-14 16:23 GMT+02:00 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk: I'd be far happier if there were provision for declaring a temporary shortcut symbol: with shortcut: TSomething= TreeRoot.SubDirs[Low(TreeRoot.SubDirs)]^ do begin shortcut.DirLogged := true;

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

2014-09-16 Thread Philippe
could the compiler avoid with pitfalls? now the compiler attach a property to the closest with where it finds it. the compiler could check if the property appears in another with of the with stack and produce a message (hint, warning or error, which may be configurated). is not it a way

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

2014-09-16 Thread Frederic Da Vitoria
2014-09-16 12:26 GMT+02:00 Philippe phili...@quarta.com.br: Em 16.09.2014 05:44, Frederic Da Vitoria escreveu: 2014-09-14 16:23 GMT+02:00 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk: I'd be far happier if there were provision for declaring a temporary shortcut symbol: with

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

2014-09-16 Thread Mattias Gaertner
On Tue, 16 Sep 2014 07:26:24 -0300 Philippe phili...@quarta.com.br wrote: could the compiler avoid with pitfalls? now the compiler attach a property to the closest with where it finds it. the compiler could check if the property appears in another with of the with stack and

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

2014-09-16 Thread Frederic Da Vitoria
2014-09-16 12:36 GMT+02:00 Frederic Da Vitoria davito...@gmail.com: 2014-09-16 12:26 GMT+02:00 Philippe phili...@quarta.com.br: Em 16.09.2014 05:44, Frederic Da Vitoria escreveu: 2014-09-14 16:23 GMT+02:00 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk: I'd be far happier if

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

2014-09-16 Thread Giuliano Colla
Il 16/09/2014 12:26, Philippe ha scritto: could the compiler avoid with pitfalls? The with construct can be very handy, but should be used with caution, like a lot of other constructs, declarations, etc. E.g. for symbols present with the same name in different units, depending on the

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

2014-09-16 Thread Sven Barth
Am 16.09.2014 12:37 schrieb Mattias Gaertner nc-gaert...@netcologne.de: On Tue, 16 Sep 2014 07:26:24 -0300 Philippe phili...@quarta.com.br wrote: could the compiler avoid with pitfalls? now the compiler attach a property to the closest with where it finds it. the compiler could

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

2014-09-16 Thread Frederic Da Vitoria
2014-09-16 14:42 GMT+02:00 Sven Barth pascaldra...@googlemail.com: Am 16.09.2014 12:37 schrieb Mattias Gaertner nc-gaert...@netcologne.de : On Tue, 16 Sep 2014 07:26:24 -0300 Philippe phili...@quarta.com.br wrote: could the compiler avoid with pitfalls? now the compiler

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

2014-09-16 Thread Philippe
I imagine that who really want to get rid from the hint ... don´t use Pascal anyway! or do have strong test tools!!! one point is that (many?) people use with ... and compiler can make it safer. may be as described Frederic Da Vitoria ... producing error when may be confused. (but let

[fpc-pascal] EpikTimer: maximum elapsed seconds

2014-09-16 Thread Xiangrong Fang
Hi there, I would like to know the maximum number of seconds EpikTimer can count. I put a program running for over 24 hours, but epiktimer told me only about less than 2000 seconds passed, when I click the finish button. Thanks. Xiangrong ___

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

2014-09-16 Thread Ewald
On 09/16/2014 03:41 PM, Philippe wrote: I imagine that who really want to get rid from the hint ... don´t use Pascal anyway! or do have strong test tools!!! one point is that (many?) people use with ... and compiler can make it safer. may be as described Frederic Da Vitoria ... producing

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

2014-09-16 Thread Flávio Etrusco
On Mon, Sep 15, 2014 at 2:55 AM, Sven Barth pascaldra...@googlemail.com wrote: On 14.09.2014 18:05, Philippe wrote: Take this example: === code begin === (...) procedure TestWith; var p: PTest; begin New(p); with p^ do begin Prop1 := 42; Prop2 := 21; end;

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

2014-09-16 Thread Philippe
on compiler implementation: I read in this list that the group lost months due a with problem. People use with, and I guess lot of people use it! I checked the reference http://www.freepascal.org/docs-html/ref/refsu58.html#x155-16500013.2.8 and there is not any warning ... just: The

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

2014-09-16 Thread Flávio Etrusco
On Tue, Sep 16, 2014 at 8:09 PM, Philippe phili...@quarta.com.br wrote: on compiler implementation: I read in this list that the group lost months due a with problem. People use with, and I guess lot of people use it! I checked the reference

[fpc-pascal] Freepascal templating engines with logical structures

2014-09-16 Thread luciano de souza
Hello all, I Know two templating engines for Freepascal: FPTemplate e JTemplate. Both can be successfully used for html construction. But they presents the same aspect: only searches and replaces tags to values. Of course, it's crucial. But to show html grids, obtained from database queries, it