Re: [fpc-pascal] What project management tool does FPC developers use?

2010-05-05 Thread Zaher Dirkey
On Tue, Apr 27, 2010 at 6:05 PM, Frank Church vfcli...@googlemail.comwrote: What project management tool does FPC and Lazarus developers use? I mean besides mantis for bug tracking? I am thinking along the lines of JIRA, Redmine, Fogbugz etc. Add Trac to the list http://trac.edgewall.org/

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread Graeme Geldenhuys
José Mejuto het geskryf: architectures. Much better would be move (array1[0],array2[0],elements*sizeof(element)) but even in this case the result is undefined, but it is a bit more exact as the programmer Now this is a perfect example, of why I love Java (at least what I have seen of it - I am

Re: [fpc-pascal] What project management tool does FPC developers use?

2010-05-05 Thread Frank Church
Redmine is cooler. People experienced with both prefer it. I dabbled with Trac a few years ago, but never even got round to using it for bug tracking etc. Redmine appears to have been designed with project management in mind from the very start. In all fairness it doesn't take much time to setup,

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-05 Thread duilio foschi
I am working on a project now for RIA similar in concept to ExtPascal, but abstracting out the UI framework with most of the logic executing on the server so that I can plug in different UI's without touching my model/controller. That is what I looking for! That is what I looking for! I do

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread Aleksa Todorovic
On Wed, May 5, 2010 at 07:34, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: So why is it a problem, that one is a pointer, and the other not? Because it is easier, or more often overlooked. The problem is not that one is a pointer (to an array) and the other one is the array itself. That

[fpc-pascal] h2pas enum error

2010-05-05 Thread Hartmut Eilers
Hello Pascal Hackers, I try to translate the comedilib to pascal. I use h2pas with the following params: h2pas -e -D -p -w -u comedilib -l comedilib -o comedilib.pas comedilib.h I get the message: at line 79 error : syntax error Line 79 of comedilib.h is: enum comedi_oor_behavior

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread spir ☣
On Tue, 4 May 2010 23:49:00 +0200 José Mejuto joshy...@gmail.com wrote: In computer science, an array data structure or simply array is a data structure consisting of a collection of elements (values or variables) [...] ??? What does this mean? As far as I know, variable in CS can have 3

Re: [fpc-pascal] h2pas enum error

2010-05-05 Thread Henry Vermaak
On 5 May 2010 09:42, Hartmut Eilers hart...@eilers.net wrote: Hello Pascal Hackers, I try to translate the comedilib to pascal. I use h2pas with the following params:  h2pas  -e -D -p -w -u comedilib  -l comedilib -o comedilib.pas comedilib.h I get the message: at line 79 error : syntax

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread Bihar Anwar
From: Aleksa Todorovic on May 5, 2010 3:13:12 PM As of copying/moving array elements, why don't you use simple for loop for that? Because of performance optimization. TStringlist.Delete() and TStringlist.InsertItem() itself uses Move() instead of such loop.

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread spir ☣
On Wed, 05 May 2010 07:34:41 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Say that it is a pointer to an array (and do not let the user think it is an array!). And say that although it is a pointer you still cannot derefference it but you need to use the first index to get the

[fpc-pascal] Comedi Lib Header translation, was: h2pas enum error

2010-05-05 Thread Hartmut Eilers
Hallo Pascal Hackers, Henry Vermaak wrote: This is a function that takes an enum param and returns an enum: function comedi_set_global_oor_behavior(behavior: comedi_oor_behavior): comedi_oor_behavior; thank you Henry, I check this out. the comedilib.h has a include comedi.h statement so I

[fpc-pascal] Pascal pointer life cycle

2010-05-05 Thread spir ☣
Hello, First, I found a very good introduction material to pointers at http://cslibrary.stanford.edu/. The author, Nick Parlante (nickname?) really has a great pedagogical talent. Below some code and output tracing a typical pointer's life cycle: === code === procedure

Re[2]: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread José Mejuto
Hello FPC-Pascal, Wednesday, May 5, 2010, 8:54:01 AM, you wrote: architectures. Much better would be move (array1[0],array2[0],elements*sizeof(element)) but even in this case the result is undefined, but it is a bit more exact as the programmer GG Now this is a perfect example, of why I love

Re[2]: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread José Mejuto
Hello FPC-Pascal, Wednesday, May 5, 2010, 10:49:24 AM, you wrote: In computer science, an array data structure or simply array is a data structure consisting of a collection of elements (values or variables) [...] s ??? s What does this mean? As far as I know, variable in CS can s have 3

Re: Re[2]: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread Andrew Brunner
Constants (values) or variable values (variables). Let's not forget assignable constants that must be typed :-) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-05 Thread Marcos Douglas
Hi Duilio, duilio foschi duiliofos...@euplan.it wrote: from the documentation of ExtPascal: file:///C:/ExtPascal/help/Overview.html (bottom part) the Parser can be adapted to read the documentation of another JavaScript framework, Dojo for example. Yes, he can, but the code generated

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread Martin
On 05/05/2010 06:34, Jürgen Hestermann wrote: So why is it a problem, that one is a pointer, and the other not? Because it is easier, or more often overlooked. The problem is not that one is a pointer (to an array) and the other one is the array itself. That would be fine if it is told to the

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread spir ☣
On Wed, 5 May 2010 13:44:40 +0200 José Mejuto joshy...@gmail.com wrote: The same applies to Pascal, my previous example is badly designed, but better than the first one. The problem here is try to use move as a Pascal way of do things. Move is low level function that should be used to

[fpc-pascal] cross platform bluetooh library

2010-05-05 Thread ik
Hello, Is there a cross platform (Linux and Windows) Bluetooth library for FPC ? Thanks, Ido http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pascal pointer life cycle

2010-05-05 Thread Jonas Maebe
On 05 May 2010, at 11:28, spir ☣ wrote: So, I have 3 questions: -1- Why isn't an unallocated pointer nil? Pascal, like C and many other languages, does not automatically initialise *all* variables in a program. It's a basic design decision of the language. -2- Why is it at all possible to

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-05 Thread Jürgen Hestermann
And as also explained in my original mail: An array does not guarantee that the identifier(stand alone) can be used for the first element. That's just the root cause of the problem: An idenifier should *always* mean the same address in memory. Otherwise you cannot use such low level functions

Re: [fpc-pascal] Comedi Lib Header translation, was: h2pas enum error

2010-05-05 Thread Marc Santhoff
Am Mittwoch, den 05.05.2010, 11:29 +0200 schrieb Hartmut Eilers: comedi.h: 494 495 static inline unsigned NI_USUAL_PFI_SELECT(unsigned pfi_channel) 496 { 497 if(pfi_channel 10) 498 return 0x1 + pfi_channel; 499 else 500

Re: [fpc-pascal] How to convert ISO format string in FreePascal

2010-05-05 Thread Frank Church
Is the an LCL routine that can get the timezone from the computer on both Windows and Linux? None of the examples mention a way of getting the computer's time zone. On 27 April 2010 20:57, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Frank Church said: attempt is based

Re[2]: [fpc-pascal] How to convert ISO format string in FreePascal

2010-05-05 Thread José Mejuto
Hello FPC-Pascal, Wednesday, May 5, 2010, 11:23:42 PM, you wrote: FC Is the an LCL routine that can get the timezone from the computer on both FC Windows and Linux? None of the examples mention a way of getting the FC computer's time zone. Usually you will have an environment variable TZ, but