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 be

[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 dates

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 first sight

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 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

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]);

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)

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 following lines

[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 a

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

[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

[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=regexdnalang=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

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

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

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] 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 ended

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. Wouldn't

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 is in

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=regexdnalang=all) is the last missing benchmark. Although fpc has a regexpr unit: http://svn.freepascal.org/svn/fpc/trunk/packages/base/regexpr/regexpr.pp

[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

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. Could you please

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

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 haven't

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-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 Felipe Monteiro de Carvalho
On 9/29/06, Adrian Maier [EMAIL PROTECTED] wrote: not_serious_suggestion By the way : why dotnet and not java ? /not_serious_suggestion 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

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

[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

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 Monteiro

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 here?

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 [EMAIL

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 at a .NET

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. And even

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 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