Re: [fpc-pascal] PThreads

2007-10-10 Thread Marco van de Voort
> I just found this href="http://sources.redhat.com/pthreads-win32/index.html";>link to > Win32 PThreads and wanted to know if FPC uses pthreads in the > Windows implementation. No. FPC is in general totally independant of any Unix lib on Windows. The parts that _can_ be used are typically ming

[fpc-pascal] PThreads

2007-10-10 Thread Andreas Berger
I just found this link to Win32 PThreads and wanted to know if FPC uses pthreads in the Windows implementation. It would probably ease use. The main inconvenience to this library is that it wants to use a dll and the nice thing about FPC is "no dependencies". So maybe an interface to the C libr

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Jilani Khaldi
oh D has more interesting things for a compiled language: - dynamic closures or delegates to nested functions - lazy evaluation - template mixins - garbage collection I am not sure if all these things are really useful - but it looks interesting. especially the delegates stuff. I think the m

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Mattias Gaertner
On Wed, 10 Oct 2007 17:07:45 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Mattias Gaertner schrieb: > > On Wed, 10 Oct 2007 16:12:03 +0200 > > Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > >> Jilani Khaldi schrieb: > What's wrong with > http://www.freepascal.org/docs-html/ref

Re: [fpc-pascal] Calling a function by name (as string) read froma text file

2007-10-10 Thread Tomas Hajny
Jilani Khaldi wrote: >> Did you implement the record exactly as shown? This error normally >> occurs >> if you have fields in your record that you don't mention in your typed >> const declaration. > > {$mode objfpc} -> Error! > {$mode delphi} -> Ok! > ... > type >TSetupFuncMapping = record >

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Jilani Khaldi
Well, it's completed or do you miss things? but still under testing ;) At this moment I, really, can't answer seen I have just begun to look at templates. I need it to translante a piece of code from D to FP. -- Jilani KHALDI ___ fpc-pascal maillist

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Adrian Veith
Jilani Khaldi schrieb: Hi All, just curious about the D language (http://www.digitalmars.com/d/index.html), I read some articles on the site, downloaded the compiler... and wrote some little examples. Well, many of the things that the author presented as new and hot features are already pres

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Florian Klaempfl
Mattias Gaertner schrieb: > On Wed, 10 Oct 2007 16:12:03 +0200 > Florian Klaempfl <[EMAIL PROTECTED]> wrote: > >> Jilani Khaldi schrieb: What's wrong with http://www.freepascal.org/docs-html/ref/refch8.html#x79-860008 ? >>> Nothing, once completed. >> Well, it's completed or do you miss

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Mattias Gaertner
On Wed, 10 Oct 2007 16:12:03 +0200 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Jilani Khaldi schrieb: > >> What's wrong with > >> http://www.freepascal.org/docs-html/ref/refch8.html#x79-860008 ? > > Nothing, once completed. > > Well, it's completed or do you miss things? but still under testing

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Florian Klaempfl
Jilani Khaldi schrieb: >> What's wrong with >> http://www.freepascal.org/docs-html/ref/refch8.html#x79-860008 ? > Nothing, once completed. Well, it's completed or do you miss things? but still under testing ;) ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Jilani Khaldi
What's wrong with http://www.freepascal.org/docs-html/ref/refch8.html#x79-860008 ? Nothing, once completed. -- Jilani KHALDI ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Calling a function by name (as string) read from a text file

2007-10-10 Thread Jilani Khaldi
Did you implement the record exactly as shown? This error normally occurs if you have fields in your record that you don't mention in your typed const declaration. {$mode objfpc} -> Error! {$mode delphi} -> Ok! ... type TSetupFuncMapping = record x: array of double; name:string; f

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Matt Emson
Jilani Khaldi wrote: Hi All, just curious about the D language (http://www.digitalmars.com/d/index.html), I read some articles on the site, downloaded the compiler... and wrote some little examples. Well, many of the things that the author presented as new and hot features are already present

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Leonardo M. Ram
> > What's wrong with > http://www.freepascal.org/docs-html/ref/refch8.html#x79-860008 ? See http://www.freepascal.org/docs-html/ref/refse39.html I was reading the document and noted this hughe image with blanks http://www.freepascal.org/docs-html/ref/ref100x.png that really looks bad. Anyway,

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Florian Klaempfl
Jilani Khaldi schrieb: > Hi All, > just curious about the D language > (http://www.digitalmars.com/d/index.html), I read some articles on the > site, downloaded the compiler... and wrote some little examples. Well, > many of the things that the author presented as new and hot features are > already

[fpc-pascal] D language and Object Pascal

2007-10-10 Thread Jilani Khaldi
Hi All, just curious about the D language (http://www.digitalmars.com/d/index.html), I read some articles on the site, downloaded the compiler... and wrote some little examples. Well, many of the things that the author presented as new and hot features are already present in Turbo Pascal or in

Re: [fpc-pascal] Calling a function by name (as string) read from a text file

2007-10-10 Thread Daniël Mantione
y Op Wed, 10 Oct 2007, schreef Jilani Khaldi: > > type Tsetupfunc_mapping=record > > name:string; > > func:setupfunc; > > end; > > const setupfunc_mapping:array[0..2] of Tsetupfunc_mapping=( > > (name:'setup_function_1';func:@setup_function_1), > > (name:'setup_function_2';func:@setup_function_

Re: [fpc-pascal] Calling a function by name (as string) read from a text file

2007-10-10 Thread Jilani Khaldi
type Tsetupfunc_mapping=record name:string; func:setupfunc; end; const setupfunc_mapping:array[0..2] of Tsetupfunc_mapping=( (name:'setup_function_1';func:@setup_function_1), (name:'setup_function_2';func:@setup_function_2), (name:'setup_function_3';

Re: [fpc-pascal] Calling a function by name (as string) read from a text file

2007-10-10 Thread Daniël Mantione
Op Wed, 10 Oct 2007, schreef Jilani Khaldi: > { > Is there a way to "connect" the name of the function as a string "evoke" to > the true function "evokeFun: SetupFun;" getting a new function > "newEvokeFun: SetupFun;" so I can write: >

[fpc-pascal] Calling a function by name (as string) read from a text file

2007-10-10 Thread Jilani Khaldi
Hi All, I have this program: program mainfun; {$mode objfpc} uses SysUtils; type SetupFun = function(const vect: array of double): double; MyRec = record x: array of double; myFunName: ShortString; // function name to evoke end; function SetMeUp(const x1: array of double): double; va

Re: [fpc-pascal] Serial port interrupts?

2007-10-10 Thread Tom Walsh
John Coppens wrote: Hello people. To make a debugging tool, I need to time changes on the serial port control and status lines on a Linux machine. The serial port hardware has this possibility, but is it possible to program this in a more or less high-level way? I did this a long time ago in DOS

Re: [fpc-pascal] Re:The Interface to MySQL has changed on version by version Andi Purwito

2007-10-10 Thread Joost van der Sluis
Op dinsdag 09-10-2007 om 22:36 uur [tijdzone -0700], schreef L: > > mysqlku.pas(16,18) Error: Identifier not found "TMYSQL" > > mysqlku.pas(16,18) Error: Error in type definition > > mysqlku.pas(18,22) Error: Identifier not found "TMYSQL_ROW" > > mysqlku.pas(18,22) Error: Error in type definition >

Re: [fpc-pascal] Re:The Interface to MySQL has changed on version by version Andi Purwito

2007-10-10 Thread Michael Van Canneyt
On Tue, 9 Oct 2007, L wrote: > > mysqlku.pas(16,18) Error: Identifier not found "TMYSQL" > > mysqlku.pas(16,18) Error: Error in type definition > > mysqlku.pas(18,22) Error: Identifier not found "TMYSQL_ROW" > > mysqlku.pas(18,22) Error: Error in type definition > > mysqlku.pas(74,17) Error: Ope