[fpc-pascal] Re: TProcess questions

2006-10-03 Thread Alexander Todorov
Adrian Maier wrote: It seems nice to have a way of specifying parameters like that (in which case I assume that strings given will be passed as-they-are). Another option is to use escaping for quote characters (and maybe some others) when specifying the TProcess.CommandLine property. __

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread James K Smith
I sent this once already. Sorry if it duplicated, but I didn't see it showing up on the list: JMO: The last thing we want the FPC team to consider is a port to .NET. Delphi already does .net, and MSFT C# does it even better. Additionally, porting to .net invites FPC to become mired in the same mu

Re: [fpc-pascal] FPC with PocketPC... any others?

2006-10-03 Thread Marco van de Voort
> does someone know if Indy port to FPC would work on ARM? (On their > site it says there has been some succes with WinCE... but asside that > 'some' succes on 'wince' is not very clear.) What OS? Indy has quite high requirements on sockets interface and the thread implementation. ___

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread Marco van de Voort
> On Tue, 3 Oct 2006, Marco van de Voort wrote: > > IMHO it would be better to start over legacy free for .NET and really target > > the .NET/JVM/LLVM platform 100%. > > > > I think that single source combinations are already all gone by the time we > > would enter production with a .NET port. A

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread Michael Van Canneyt
On Tue, 3 Oct 2006, Marco van de Voort wrote: > > On Tue, 3 Oct 2006, Felipe Monteiro de Carvalho wrote: > > > At my company, we still have a huge number of clients running Windows > > 95, who protest loudly when we even _suggest_ upgrading. > > > > Which is not to say that we should not look

Re: [fpc-pascal] FPC with PocketPC... any others?

2006-10-03 Thread Alexandre Leclerc
Thank you Felipe; does someone know if Indy port to FPC would work on ARM? (On their site it says there has been some succes with WinCE... but asside that 'some' succes on 'wince' is not very clear.) 2006/10/3, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]>: On 10/3/06, Alexandre Leclerc <[EMA

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread Micha Nelissen
Marco van de Voort wrote: > IMHO it would be better to start over legacy free for .NET and really target > the .NET/JVM/LLVM platform 100%. Refer them to Chrome ? ;-) Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] Problem with GLOB()

2006-10-03 Thread Marco van de Voort
> I just wrote a little program in FPC 2.0.2 which uses GLOB() to search and > display a directory. I use 'oldlinux' in the uses statement. [...] > finally installed the full (and same!) fpc version there and re-compiled the > source, but the result is the same. > > Any idea about what is wrong

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread Marco van de Voort
> On Tue, 3 Oct 2006, Felipe Monteiro de Carvalho wrote: > At my company, we still have a huge number of clients running Windows > 95, who protest loudly when we even _suggest_ upgrading. > > Which is not to say that we should not look at a .NET port of FPC, but > this is not very high on the pr

Re: [fpc-pascal] FPC with PocketPC... any others?

2006-10-03 Thread Felipe Monteiro de Carvalho
On 10/3/06, Alexandre Leclerc <[EMAIL PROTECTED]> wrote: I see FPC can compile for PocketPC? Can it compile on other devices? (i feel ms is not the only player in the arena...) Take a look here: http://www.freepascal.org/wiki/index.php/Platform_list#Supported_targets_for_ARM -- Felipe Monteir

[fpc-pascal] FPC with PocketPC... any others?

2006-10-03 Thread Alexandre Leclerc
Hi all, I see FPC can compile for PocketPC? Can it compile on other devices? (i feel ms is not the only player in the arena...) -- Alexandre Leclerc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinf

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread Michael Van Canneyt
On Tue, 3 Oct 2006, Felipe Monteiro de Carvalho wrote: > > About .NET and LLVM, they don´t seam to add anything Free Pascal > already cannot do. > > We should also think it may be inevitable to write a .NET port in the > very long future (10 years?), if microsoft decides to obsolete windows >

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread Krishna
On 10/3/06, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: About .NET and LLVM, they don´t seam to add anything Free Pascal already cannot do. Donno about .NET but LLVM advertises itself as a target for compiler development. It does a wide range of optimizations and if memory serves ri

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread Felipe Monteiro de Carvalho
On 9/29/06, Adrian Maier <[EMAIL PROTECTED]> wrote: By the way : why dotnet and not java ? Acctually I was considering (not so near in the future), to research about writing a java byte code target for Free Pascal. Of course the faq says you guys aren´t much pro it, but there do is a real

[fpc-pascal] Problem with GLOB()

2006-10-03 Thread Rainer Hantsch
Hello! I just wrote a little program in FPC 2.0.2 which uses GLOB() to search and display a directory. I use 'oldlinux' in the uses statement. It works fine on my old SuSE 8.0. Then I copied the binary to a SuSE 9.0 machine and started it there. It works (means that it doesn't crash), but shows

Re: [fpc-pascal] .NET FAQ

2006-10-03 Thread Jonas Maebe
On 29 Sep 2006, at 12:15, Krishna wrote: Why not target LLVM instead? I've also thought about that, but haven't looked yet at the technical specifications of LLVM to see how easy/difficult it would be. Jonas ___ fpc-pascal maillist - fpc-pasc

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Andrew Haines
Adrian Maier wrote: > So, initially the Environment is empty and the program inherits the > variables. > When I append the first variable, it will no longer inherit the variables. > > I find the behaviour counterintuitive: the first "append" causes the > Environment to > be initialised. > > I ha

Re: [fpc-pascal] Last missing benchmark: regex-dna

2006-10-03 Thread Пётр Косаревский
> Although fpc has a regexpr unit: > http://svn.freepascal.org/svn/fpc/trunk/packages/base/regexpr/regexpr.pp > It has many todos, such as adding support for | in the search expression. So > this > unit doesn't have enough functionality. While '|' support is to be considered basic regex function

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Adrian Maier
On 10/3/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > On Tue, 3 Oct 2006, Adrian Maier wrote: > > > > It's a painful one. I was hoping to switch to TProcess instead of shell ( > > which isn't cross-platform ) ... > > The bug won't occur on windows :) > > I will see about fixing it. Coul

[fpc-pascal] Re: TProcess questions

2006-10-03 Thread Alexander Todorov
Marco van de Voort wrote: > Can you add the following to TProcess instead of using the CommandLine property: > example: > property ProcessName: String - the process to be executed > property Params : TStringList - list of command line params to be > passed to the process > > Why should quote ch

Re: [fpc-pascal] Last missing benchmark: regex-dna

2006-10-03 Thread Krishna
On 10/3/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: The regex-dna benchmark (http://shootout.alioth.debian.org/debian/benchmark.php?test=regexdna&lang=all) is the last missing benchmark. Although fpc has a regexpr unit: http://svn.freepascal.org/svn/fpc/trunk/packages/base/regexpr/regexpr.p

Re: [fpc-pascal] Re: TProcess questions

2006-10-03 Thread Marco van de Voort
> Can you add the following to TProcess instead of using the CommandLine > property: > example: > property ProcessName: String - the process to be executed > property Params : TStringList - list of command line params to be > passed to the process > > Why should quote characters be stripped as it

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Marco van de Voort
> On Tue, 3 Oct 2006, Adrian Maier wrote: > > > > It's a painful one. I was hoping to switch to TProcess instead of shell ( > > which isn't cross-platform ) ... > > The bug won't occur on windows :) > > I will see about fixing it. Could you please post a bug report so it won't > be forgotten

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Adrian Maier
On 10/3/06, Adrian Maier <[EMAIL PROTECTED]> wrote: > > Well, first of all you should do a 'IsRunning' (or running) before checking > the exitcode. I'm using the poWaitOnExit option, so my program doesn't waits until the external process ends. All I need is to know if the external process en

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Adrian Maier
On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: I will see about fixing it. Could you please post a bug report so it won't be forgotten. Mantis issue 7534 added . Is it likely for the fix to go into fpc 2.0.4? Or just in the HEAD ? Cheers, Adrian Maier ___

Re: [fpc-pascal] TFPHashList help

2006-10-03 Thread Graeme Geldenhuys
On 03/10/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: Well, I just programmed an extension to TFPHashTable (in cooperation with Dean Zobec) which allows you to select this behaviour: to free or not to free. It's not yet in SVN, but if you want I can send it to you. Michael. It's not urg

Re: [fpc-pascal] Re: TProcess questions

2006-10-03 Thread Michael Van Canneyt
On Tue, 3 Oct 2006, Alexander Todorov wrote: > Can you add the following to TProcess instead of using the CommandLine > property: > example: > property ProcessName: String - the process to be executed > property Params : TStringList - list of command line params to be > passed to the process Ex

[fpc-pascal] Last missing benchmark: regex-dna

2006-10-03 Thread Vincent Snijders
The regex-dna benchmark (http://shootout.alioth.debian.org/debian/benchmark.php?test=regexdna&lang=all) is the last missing benchmark. Although fpc has a regexpr unit: http://svn.freepascal.org/svn/fpc/trunk/packages/base/regexpr/regexpr.pp It has many todos, such as adding support for | in the

[fpc-pascal] Re: TProcess questions

2006-10-03 Thread Alexander Todorov
Can you add the following to TProcess instead of using the CommandLine property: example: property ProcessName: String - the process to be executed property Params : TStringList - list of command line params to be passed to the process Why should quote characters be stripped as it is in the curre

Re: [fpc-pascal] TFPHashList help

2006-10-03 Thread Michael Van Canneyt
On Tue, 3 Oct 2006, Graeme Geldenhuys wrote: > Hi, > > I have the following class and function that retrieves a object from a > internal TFPHashList. If the object isn't in the list, it is read from > a database, and then also inserted into the hashlist, before it gets > returned. > > Does TFP

[fpc-pascal] Re: TFPHashList help

2006-10-03 Thread Graeme Geldenhuys
Sorry, I forgot to mention... TFPHashTable.Items[] doesn't take a integer, but a string. Which I believe is the 'key', so I can't loop through the list. Graeme. On 03/10/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: Hi, I have the following class and function that retrieves a object from

[fpc-pascal] TFPHashList help

2006-10-03 Thread Graeme Geldenhuys
Hi, I have the following class and function that retrieves a object from a internal TFPHashList. If the object isn't in the list, it is read from a database, and then also inserted into the hashlist, before it gets returned. Does TFPHashTable also manage the objects it contains (or references) l

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Adrian Maier
On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: On Tue, 3 Oct 2006, Adrian Maier wrote: > On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > Any idea how should i quote the arguments so that they would be properly > > > treated by TProcess? > > > > You can't. The follow

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Michael Van Canneyt
On Tue, 3 Oct 2006, Adrian Maier wrote: > On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > Any idea how should i quote the arguments so that they would be properly > > > treated by TProcess? > > > > You can't. The following lines (line 107 of unix/process.inc) > > Result:=StringR

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Adrian Maier
On 10/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Any idea how should i quote the arguments so that they would be properly > treated by TProcess? You can't. The following lines (line 107 of unix/process.inc) Result:=StringReplace(Result,'"','',[rfReplaceAll]); Result:=String

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Vincent Snijders
Michael Van Canneyt schreef: On Tue, 3 Oct 2006, Adrian Maier wrote: 2. Where is the TProcess documented on the freepascal website? I had found a FCL.pdf some time ago , but I am unable to find that doc on the freepascal website. It is not documented currently. It's scheduled as the next u

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Michael Van Canneyt
On Tue, 3 Oct 2006, Michael Van Canneyt wrote: > > 2. Where is the TProcess documented on the freepascal website? I had > > found a FCL.pdf some time ago , but I am unable to find that doc on the > > freepascal website. > > It is not documented currently. It's scheduled as the next unit to be

Re: [fpc-pascal] TProcess questions

2006-10-03 Thread Michael Van Canneyt
On Tue, 3 Oct 2006, Adrian Maier wrote: > Hello, > > I have several questions about executing external programs with TProcess > > 1. I need to execute the following command : > psql -q -f /home/am/src/gfaf/hlemit_d.sql -v D1="'1-apr-06'" -v > D2="'1-jun-06'" > > (it might not be obvious at

[fpc-pascal] TProcess questions

2006-10-03 Thread Adrian Maier
Hello, I have several questions about executing external programs with TProcess 1. I need to execute the following command : psql -q -f /home/am/src/gfaf/hlemit_d.sql -v D1="'1-apr-06'" -v D2="'1-jun-06'" (it might not be obvious at first sight that there are both " and ' enclosing those d

Re: [fpc-pascal] Using Graph unit on Linux Ubuntu...

2006-10-03 Thread Tiziano_mk
Tiziano_mk ha scritto: { Link with VGA, gl and c libraries } {$linklib vga} {$linklib c} I am not a linux expert, so after installing the library "libsvga" (the only like "libvga" I found on the ubuntu repository) I don't understand what the linker wants and I'm giving up. Some hints would