[fpc-pascal] Re: Can variables be declared within a block?

2010-10-21 Thread leledumbo
> This argument can be used to promote each and every change, no matter how obscure it is. > But you forget that you may be forced to read code from other people in > which case you are > suddenly confronted with such weird constructs. Then it does not help that > you had guidelines > for your

Re: [fpc-pascal] Can variables be declared within a block?

2010-10-21 Thread Jürgen Hestermann
Rob Kennedy schrieb: Write that into your local coding guidelines and enforce it in code reviews, not the language spec. This argument can be used to promote each and every change, no matter how obscure it is. But you forget that you may be forced to read code from other people in which case y

Re: [fpc-pascal] JSON Parser to tree view

2010-10-21 Thread Luiz Americo Pereira Camara
ik escreveu: Hello, I wish to use the JSON parser to create some sort of TreeView of my JSON (it's more then 500 lines of data). Before I'll write such code, do you know of any existed code that does such thing, or at least most of the work ? http://code.google.com/p/luipack/source/browse/t

Re: [fpc-pascal] Building FPC with debug information

2010-10-21 Thread Jonas Maebe
On 21 Oct 2010, at 08:24, Graeme Geldenhuys wrote: > Op 2010-10-20 20:36, Jonas Maebe het geskryf: >> >> On 20 Oct 2010, at 19:54, Brian Winfrey wrote: >> make OPT="-O-" DEBUG=1 all >>> >>> When I ran this I see that both -dDEBUG and -dRELEASE are passed on >>> the fpc command line. Is t

[fpc-pascal] PostgreSQL 8.4 Ubuntu 10.10 x64

2010-10-21 Thread Andrew Brunner
I've got a problem with the PostgreSQL component. I've got an insert statement with int64 values. The prepare command goes through but the server denies the entire packet with the string value of the int64 is too large for integer type error. The fields were all declared as bigint and the parame

[fpc-pascal] Re: [Lazarus] JSON Parser to tree view

2010-10-21 Thread ik
Thank, that's a great tool, you saved my time and nerves :) Once again FPC and Lazarus for the rescue. Ido On Thu, Oct 21, 2010 at 16:27, Michael Van Canneyt wrote: > > > On Thu, 21 Oct 2010, ik wrote: > > Hello, >> >> I wish to use the JSON parser to create some sort of TreeView of my JSON >

[fpc-pascal] Re: [Lazarus] JSON Parser to tree view

2010-10-21 Thread Michael Van Canneyt
On Thu, 21 Oct 2010, ik wrote: Hello, I wish to use the JSON parser to create some sort of TreeView of my JSON (it's more then 500 lines of data). Before I'll write such code, do you know of any existed code that does such thing, or at least most of the work ? See the tools/jsonviewer appli

[fpc-pascal] JSON Parser to tree view

2010-10-21 Thread ik
Hello, I wish to use the JSON parser to create some sort of TreeView of my JSON (it's more then 500 lines of data). Before I'll write such code, do you know of any existed code that does such thing, or at least most of the work ? Thanks, Ido LINESIP websites: http://www.linesip.com http://www.

Re: [fpc-pascal] Building FPC with debug information

2010-10-21 Thread Henry Vermaak
On 21/10/10 07:24, Graeme Geldenhuys wrote: Op 2010-10-20 20:36, Jonas Maebe het geskryf: On 20 Oct 2010, at 19:54, Brian Winfrey wrote: make OPT="-O-" DEBUG=1 all When I ran this I see that both -dDEBUG and -dRELEASE are passed on the fpc command line. Is that correct? Yes. Mind expla

Re: [fpc-pascal] Real length of WideString

2010-10-21 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > Length() returns number of bytes, not number of characters. The incorrect > assumption was made back in Delphi (before unicode support). Afaik before unicode. Delphi 3 (which introduced widestrings) was released August 5th, 1997. Unicode 3.0

Re: [fpc-pascal] IntList

2010-10-21 Thread Honza
2010/10/19 Brian Winfrey : > Take a look at http://code.google.com/p/fprb/.  I have just perused > it, but it looks pretty good. I'm willing to cooperate (as free time permits) on any required FPRB/heLib review/modification process would any part(s) of the code be considered/adopted by the dev tea