[fpc-pascal] Search engine in Pascal
Hi All, I am looking for a free search engine in Pascal for a small web site. Any point? Thanks! JK ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Search engine in Pascal
On Mon, 31 Mar 2008, Jilani Khaldi wrote: > Hi All, > I am looking for a free search engine in Pascal for a small web site. > Any point? There is, IODA: http://ioda.sourceforge.net/ Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Search engine in Pascal
There is, IODA: http://ioda.sourceforge.net/ I compiled it from source and installed it. Trying it with a little example I couldn't get it working and the error message is written in german. I don't know german. So could you please translate errors messages in english? Thank you. I think (!?) the error is: "coudn't open the file". But without indicating the file name. These are my 2 questions: 1) I have some HTML files (*.html) in "/data/html", how to index them? 2) I have the file "/data/txt/students.txt", how to index it? I have the wordlist "/dati/wlist/wl.txt" which contains: abc,1 efg,2 hij,3 klm,4 Many thanks! JK ps I already have read the docs on-line. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Search engine in Pascal
On Mon, 31 Mar 2008, Jilani Khaldi wrote: > > There is, IODA: > > > > http://ioda.sourceforge.net/ > I compiled it from source and installed it. Trying it with a little example I > couldn't get it working and the error message is written in german. I don't > know german. So could you please translate errors messages in english? Thank > you. For a clear understanding: This is not my project, I don't use it (yet). I just had the link for future use for a search engine for the FPC docs. =-) Michael. > I think (!?) the error is: "coudn't open the file". But without indicating the > file name. > These are my 2 questions: > 1) I have some HTML files (*.html) in "/data/html", how to index them? > 2) I have the file "/data/txt/students.txt", how to index it? > I have the wordlist "/dati/wlist/wl.txt" which contains: > abc,1 > efg,2 > hij,3 > klm,4 > Many thanks! > > JK > > ps > I already have read the docs on-line. > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Generics
I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T> = class(TObject) private FDefaultItem: _T; // line 35 public constructor Create; destructor Destroy;override; [...] end; But I have got the following : commons.pas(35,21) Error: Identifier not found "_T" commons.pas(35,21) Error: Error in type definition commons.pas(39,34) Error: Identifier not found "_T" commons.pas(44,84) Error: Identifier not found "_T" According to the documentation, I should use `var private`, but I have got : Compiling ./commons.pas commons.pas(33,3) Error: VAR and TYPE are allowed only in generics commons.pas(35,21) Error: Identifier not found "_T" Could someone tell me where I am wrong ? Thanks ! -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
After you define the generic you must first create a type for it: type TMyMcollection = specialize TMCollection; And use the TMyMcollection. It seems like hard work, but it is much better then the way it look on a bad C++ and Java code :) Ido On Mon, Mar 31, 2008 at 4:00 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: > > I would like to make a generic class, like this : > > {$mode objfpc} > > generic TMCollection<_T> = class(TObject) > private > FDefaultItem: _T; // line 35 > public > constructor Create; > destructor Destroy;override; > [...] > end; > > > But I have got the following : > commons.pas(35,21) Error: Identifier not found "_T" > commons.pas(35,21) Error: Error in type definition > commons.pas(39,34) Error: Identifier not found "_T" > commons.pas(44,84) Error: Identifier not found "_T" > > According to the documentation, I should use `var private`, but I have > got : > > Compiling ./commons.pas > commons.pas(33,3) Error: VAR and TYPE are allowed only in generics > commons.pas(35,21) Error: Identifier not found "_T" > > Could someone tell me where I am wrong ? > Thanks ! > > > > -- > Damien Gerard > [EMAIL PROTECTED] > > "Intelligence is 10 million rules." > -- Douglas Lenat > > > > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Le Mar 31, 2008 à 3:20 PM, ik a écrit : After you define the generic you must first create a type for it: type TMyMcollection = specialize TMCollection; Sorry but it did not change anything. Additionally, I would prefer to define the specialization in another unit. And use the TMyMcollection. It seems like hard work, but it is much better then the way it look on a bad C++ and Java code :) :) Ido On Mon, Mar 31, 2008 at 4:00 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T> = class(TObject) private FDefaultItem: _T; // line 35 public constructor Create; destructor Destroy;override; [...] end; But I have got the following : commons.pas(35,21) Error: Identifier not found "_T" commons.pas(35,21) Error: Error in type definition commons.pas(39,34) Error: Identifier not found "_T" commons.pas(44,84) Error: Identifier not found "_T" According to the documentation, I should use `var private`, but I have got : Compiling ./commons.pas commons.pas(33,3) Error: VAR and TYPE are allowed only in generics commons.pas(35,21) Error: Identifier not found "_T" Could someone tell me where I am wrong ? Thanks ! -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Le Mar 31, 2008 à 3:00 PM, Damien Gerard a écrit : I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T> = class(TObject) private FDefaultItem: _T; // line 35 public constructor Create; destructor Destroy;override; [...] end; But I have got the following : commons.pas(35,21) Error: Identifier not found "_T" commons.pas(35,21) Error: Error in type definition commons.pas(39,34) Error: Identifier not found "_T" commons.pas(44,84) Error: Identifier not found "_T" According to the documentation, I should use `var private`, but I have got : Compiling ./commons.pas commons.pas(33,3) Error: VAR and TYPE are allowed only in generics commons.pas(35,21) Error: Identifier not found "_T" Could someone tell me where I am wrong ? Thanks ! I forgot : fpc 2.2.0 and fpc 2.2.1. May be I should upgrade to 2.3.x ? -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Can you create a small proof of concept, and attach it here ? Ido On Mon, Mar 31, 2008 at 4:27 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: > > Le Mar 31, 2008 à 3:00 PM, Damien Gerard a écrit : > > > > > I would like to make a generic class, like this : > > > > {$mode objfpc} > > > > generic TMCollection<_T> = class(TObject) > > private > >FDefaultItem: _T; // line 35 > > public > >constructor Create; > >destructor Destroy;override; > >[...] > > end; > > > > > > But I have got the following : > > commons.pas(35,21) Error: Identifier not found "_T" > > commons.pas(35,21) Error: Error in type definition > > commons.pas(39,34) Error: Identifier not found "_T" > > commons.pas(44,84) Error: Identifier not found "_T" > > > > According to the documentation, I should use `var private`, but I > > have got : > > > > Compiling ./commons.pas > > commons.pas(33,3) Error: VAR and TYPE are allowed only in generics > > commons.pas(35,21) Error: Identifier not found "_T" > > > > Could someone tell me where I am wrong ? > > Thanks ! > > > > > > I forgot : fpc 2.2.0 and fpc 2.2.1. May be I should upgrade to 2.3.x ? > > > > > -- > Damien Gerard > [EMAIL PROTECTED] > > "Intelligence is 10 million rules." > -- Douglas Lenat > > > > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Le Mar 31, 2008 à 3:59 PM, ik a écrit : Can you create a small proof of concept, and attach it here ? Here you are. The unit is in development so it may remain some errors (I would like to convert another units with the use of generics). BTW, is there a way to specifiy the template parameter must be a descendant of another class ? Ido On Mon, Mar 31, 2008 at 4:27 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: Le Mar 31, 2008 à 3:00 PM, Damien Gerard a écrit : I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T> = class(TObject) private FDefaultItem: _T; // line 35 public constructor Create; destructor Destroy;override; [...] end; But I have got the following : commons.pas(35,21) Error: Identifier not found "_T" commons.pas(35,21) Error: Error in type definition commons.pas(39,34) Error: Identifier not found "_T" commons.pas(44,84) Error: Identifier not found "_T" According to the documentation, I should use `var private`, but I have got : Compiling ./commons.pas commons.pas(33,3) Error: VAR and TYPE are allowed only in generics commons.pas(35,21) Error: Identifier not found "_T" Could someone tell me where I am wrong ? Thanks ! I forgot : fpc 2.2.0 and fpc 2.2.1. May be I should upgrade to 2.3.x ? foo.pas Description: Binary data -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
> Le Mar 31, 2008 ? 3:00 PM, Damien Gerard a ?crit : > > I forgot : fpc 2.2.0 and fpc 2.2.1. May be I should upgrade to 2.3.x ? Afaik you need 2.3.x. A recent one (of this year). ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T> = class(TObject) private FDefaultItem: _T; // line 35 public constructor Create; destructor Destroy;override; [...] end; But I have got the following : commons.pas(35,21) Error: Identifier not found "_T" commons.pas(35,21) Error: Error in type definition commons.pas(39,34) Error: Identifier not found "_T" commons.pas(44,84) Error: Identifier not found "_T" According to the documentation, I should use `var private`, but I have got : Compiling ./commons.pas commons.pas(33,3) Error: VAR and TYPE are allowed only in generics commons.pas(35,21) Error: Identifier not found "_T" Could someone tell me where I am wrong ? The forward declaration of TMCollection makes it a normal class and not a generic class. Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Le Mar 31, 2008 à 6:03 PM, Peter Vreman a écrit : I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T> = class(TObject) private FDefaultItem: _T; // line 35 public constructor Create; destructor Destroy;override; [...] end; But I have got the following : commons.pas(35,21) Error: Identifier not found "_T" commons.pas(35,21) Error: Error in type definition commons.pas(39,34) Error: Identifier not found "_T" commons.pas(44,84) Error: Identifier not found "_T" According to the documentation, I should use `var private`, but I have got : Compiling ./commons.pas commons.pas(33,3) Error: VAR and TYPE are allowed only in generics commons.pas(35,21) Error: Identifier not found "_T" Could someone tell me where I am wrong ? The forward declaration of TMCollection makes it a normal class and not a generic class. Oki I understand. I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? foo.pas Description: Binary data -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Oki I understand. I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? Actually there is the same error with an intermediate class :( -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Damien Gerard wrote: > Oki I understand. > I tried to use an Interface but I had a nice Segementation fault :) I'm not sure how FParent.ItemByDefault is going to work? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Damien Gerard wrote: >> I tried to use an Interface but I had a nice Segementation fault :) >> >> Should I report it as a bug in the mantis ? >> >> > > Actually there is the same error with an intermediate class :( Segmentation faults in the compiler itself can/should always be reported. Thanks. Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Le Mar 31, 2008 à 6:36 PM, Micha Nelissen a écrit : Damien Gerard wrote: I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? Actually there is the same error with an intermediate class :( Segmentation faults in the compiler itself can/should always be reported. Thanks. Reported as Issue #11075. -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Generics
Le Mar 31, 2008 à 10:06 PM, Damien Gerard a écrit : Le Mar 31, 2008 à 6:36 PM, Micha Nelissen a écrit : Damien Gerard wrote: I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? Actually there is the same error with an intermediate class :( Segmentation faults in the compiler itself can/should always be reported. Thanks. Reported as Issue #11075. It was actually an already known bug :) -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] connection problem
JoshyFun wrote: Hello Jesus, Saturday, March 29, 2008, 7:19:34 PM, you wrote: JRA> For fpc repository I use JRA> http://svn.freepascal.org/svn/fpc/trunk and it JRA> doesn't work anyway, I don't get the PROPFIND problem though, after I type JRA> svn update, the command doesn't do anything. From my side it looks like a transparent proxy problem, so setting an alternative port different then 80 may help. Maybe somebody that can successfully access should dump the received http headers, maybe one of them is confusing the transparent proxy :-? We used to have port 8080 for this on svn. Don't know if this got reinstalled after the last change. Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Gnu Scientific Library
What would I need to do if I want to use portions of the GSL? Are there headers written for fpc for this? I looked through JEDI-Math but my understanding is that the license for the majority of the routines is MPL and not compatible with GPL. Thanks Matt ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re[2]: [fpc-pascal] connection problem
Hello Marc, Monday, March 31, 2008, 11:46:17 PM, you wrote: MW> We used to have port 8080 for this on svn. Don't know if this got MW> reinstalled after the last change. No 8080 connectable from my location :( Anyway the transparent proxy will handle the 8080 and 80 ports in the same way... quite sure. -- Best regards, JoshyFun ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Gnu Scientific Library
> What would I need to do if I want to use portions of the GSL? Are > there headers written for fpc for this? > > I looked through JEDI-Math but my understanding is that the license > for the majority of the routines is MPL and not compatible with GPL. Afaik Jedi-Math and SDL are dual licensed to the FPC license. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal