Re: [fpc-pascal] TFPGObjectList error

2018-07-03 Thread Sven Barth via fpc-pascal
Am 01.07.2018 um 04:14 schrieb Michalis Kamburelis: 2018-07-01 4:01 GMT+02:00 Vojtěch Čihák : this seems to be misleading error message. TFPGObjectList works well for objects (classes). When I tried to push record to it, I got the same error message. TVec3 is not class, right? Indeed, it's a

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Jim Lee
On 07/01/18 23:16, Michael Van Canneyt wrote: Seems I forgot to update the symlink when we released. I fixed that. Thanks for pointing it out. No problem. I consider this an error in your reasoning. The bugtracker is very lowlevel, and should be usable and familiar for all. Many of the

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Marco van de Voort
In our previous episode, Ryan Joseph said: > > > > And to what page would this script then point when you find something ? If > > it was easy, it would have been done already. > > > > But, here's your shot at contributing :) > > The easiest thing would be to read the .chm file and search that l

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Tomas Hajny
On Mon, July 2, 2018 08:16, Michael Van Canneyt wrote: > On Sun, 1 Jul 2018, Jim Lee wrote: >> On 07/01/18 12:28, Michael Van Canneyt wrote: . . >> An auto-generated index of all identifiers used across all modules is >> useful, if you know what you're looking for.  Say I was looking for >> somet

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Ryan Joseph
> On Jul 2, 2018, at 5:39 AM, Michael Van Canneyt > wrote: > > I'm reviving my 'search docs' engine attempt. The idea is to create a single > index for all doc pages, which would be updated when the documentation is > regenerated. why can’t the .chm file be read on the server? There’s already

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Ryan Joseph
> On Jul 1, 2018, at 11:55 PM, Michael Van Canneyt > wrote: > > And to what page would this script then point when you find something ? If it > was easy, it would have been done already. > > But, here's your shot at contributing :) The easiest thing would be to read the .chm file and search

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Marcos Douglas B. Santos
On Mon, Jul 2, 2018 at 3:16 AM, Michael Van Canneyt wrote: > > [...] > > Contrary to what it may seem it is not so easy to make a search engine for > the documentation. I've had several shots at it, but have not yet come up > with a good mechanism. The last mechanism I tried ended up indexing more

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Michael Van Canneyt
On Mon, 2 Jul 2018, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: It takes currently about 1000 secs to process the FCL docs (~ 5000 files). That seems acceptable to me. Test with the LCL docs. Generating a rtl or fcl chm is measured in tens of seconds, LCL a

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > It takes currently about 1000 secs to process the FCL docs (~ 5000 files). > That seems acceptable to me. Test with the LCL docs. Generating a rtl or fcl chm is measured in tens of seconds, LCL a full 8 minutes. ___

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Michael Van Canneyt
On Mon, 2 Jul 2018, Martok wrote: Am 02.07.2018 um 11:46 schrieb Michael Van Canneyt: The CHM manual generation is as problematic as the indexing itself. And the CHM search index is generated by Windows on first use, as far as I know. Hm, okay. Not really helping then, sorry. They never wer

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > > > From what it looks like, this is built on the CHM format files? If one could > > figure out what they use, maybe that would be a step in the right direction? > > The CHM manual generation is as problematic as the indexing itself. > And th

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Martok
Am 02.07.2018 um 11:46 schrieb Michael Van Canneyt: > The CHM manual generation is as problematic as the indexing itself. > And the CHM search index is generated by Windows on first use, as far as I > know. Hm, okay. Not really helping then, sorry. > They never were designed to be interlinked: >

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Michael Van Canneyt
On Mon, 2 Jul 2018, Martok wrote: Without a good search feature these are really hard to use. Searching should be the first priority. Can’t we just make a little script to put on the server which searches the original indexed format which the HTML is derived from? It would be so easy to mak

Re: [fpc-pascal] TFPGObjectList error

2018-07-02 Thread Martok
> Without a good search feature these are really hard to use. Searching should > be the first priority. Can’t we just make a little script to put on the > server which searches the original indexed format which the HTML is derived > from? It would be so easy to make something that’s cheap but at

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Michael Van Canneyt
On Sun, 1 Jul 2018, Jim Lee wrote: On 07/01/18 12:28, Michael Van Canneyt wrote: The documentation is brought up to date at every release: all new identifiers are documented and the documentation regenerated. If you look in the bugtracker, you will see that I regularly fix documentation is

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Michael Van Canneyt
On Sun, 1 Jul 2018, Ryan Joseph wrote: On Jul 1, 2018, at 1:28 PM, Michael Van Canneyt wrote: RTL: https://www.freepascal.org/docs-html/current/rtl/index-8.html Without a good search feature these are really hard to use. Searching should be the first priority. Can’t we just make a lit

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Ryan Joseph
> On Jul 1, 2018, at 1:28 PM, Michael Van Canneyt > wrote: > > RTL: https://www.freepascal.org/docs-html/current/rtl/index-8.html Without a good search feature these are really hard to use. Searching should be the first priority. Can’t we just make a little script to put on the server which

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Jim Lee
On 07/01/18 12:28, Michael Van Canneyt wrote: The documentation is brought up to date at every release: all new identifiers are documented and the documentation regenerated. If you look in the bugtracker, you will see that I regularly fix documentation issues. Thanks.  The user's guide, pro

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Michael Van Canneyt
On Sun, 1 Jul 2018, Jim Lee wrote: On 07/01/18 01:03, Michael Van Canneyt wrote: Can you explain what you think is wrong with or missing in the official documentation ? (apart from a search mechanism) Michael. Well, search is a big one, but there seems to be a lot of missing pieces (a

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread wkitty42
On 07/01/2018 03:13 PM, Jim Lee wrote: That is exactly the documentation I'm talking about.  I've seen all of them.  I got to them via the wiki, so I suppose I should have said "The wiki, and documentation linked to from there". oh!! ok, well... i think the docs.var one i pointed out above is

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Jim Lee
On 07/01/18 12:07, wkitt...@windstream.net wrote: On 07/01/2018 02:38 PM, Jim Lee wrote: The most common scenario for me is this: "I wonder if fpc (or Lazarus) already has ".  Go to the wiki and browse haphazardly, looking for [...] that may be part of your problem... you're looking in a w

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread wkitty42
On 07/01/2018 02:38 PM, Jim Lee wrote: The most common scenario for me is this: "I wonder if fpc (or Lazarus) already has ". Go to the wiki and browse haphazardly, looking for [...] that may be part of your problem... you're looking in a wiki instead of a more proper place... all the FPC docs

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Jim Lee
On 07/01/18 01:03, Michael Van Canneyt wrote: Can you explain what you think is wrong with or missing in the official documentation ? (apart from a search mechanism) Michael. Well, search is a big one, but there seems to be a lot of missing pieces (again, without search it's hard to tell

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > (the CHM form of the documentation has fulltext search, indexes etc. On > > Windows you can just click them to open. > > I know. we have fpIndexer to make such an index. The CHM packages has its own (afaik with phrase compression) > I just n

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Ryan Joseph
> On Jul 1, 2018, at 6:19 AM, Marco van de Voort wrote: > > (the CHM form of the documentation has fulltext search, indexes etc. On > Windows you can just click them to open. The CHM reader can be searched so why doesn’t search work for the web interface? I would think there would be a standa

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Michael Van Canneyt
On Sun, 1 Jul 2018, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Can you explain what you think is wrong with or missing in the official documentation ? (apart from a search mechanism) (the CHM form of the documentation has fulltext search, indexes etc. On W

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > Can you explain what you think is wrong with or missing in the official > documentation ? > (apart from a search mechanism) (the CHM form of the documentation has fulltext search, indexes etc. On Windows you can just click them to open. It als

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread Michael Van Canneyt
On Sat, 30 Jun 2018, Jim Lee wrote: On 06/30/18 19:42, Ryan Joseph wrote: Is that part of the RTL and if so what’s the unit name? I had a hard time finding good resources on classes the RTL provides. That has been my experience as well.  Is there a definitive source of documentation

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Jim Lee
On 06/30/18 21:14, Ryan Joseph wrote: I know of http://docs.getlazarus.org which has some helpful stuff but it’s mainly Lazarus which I personally don’t use. Otherwise it’s just hunting around in https://www.freepascal.org/docs-html/rtl/ for me. There’s no searching feature though. :( FPC b

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Ryan Joseph
> On Jun 30, 2018, at 10:03 PM, Jim Lee wrote: I know of http://docs.getlazarus.org which has some helpful stuff but it’s mainly Lazarus which I personally don’t use. Otherwise it’s just hunting around in https://www.freepascal.org/docs-html/rtl/ for me. There’s no searching feature though.

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Jim Lee
On 06/30/18 19:42, Ryan Joseph wrote: Is that part of the RTL and if so what’s the unit name? I had a hard time finding good resources on classes the RTL provides. That has been my experience as well.  Is there a definitive source of documentation for both Free Pascal and Lazarus?  Anyone

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Michalis Kamburelis
Ryan Joseph wrote: > > > Or you could use Generics.Collections unit with generic TList for > > records. It by default compares records by comparing memory contents. > > Is that part of the RTL and if so what’s the unit name? I had a hard time > finding good resources on classes the RTL provides.

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Ryan Joseph
> On Jun 30, 2018, at 8:14 PM, Michalis Kamburelis > wrote: > > The solution is to use TFPGList instead of TFPGObjectList. You should > also define an equality operator if TVec3 is a record. See e.g. my > example in > https://castle-engine.io/modern_pascal_introduction.html#_operator_overload

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Michalis Kamburelis
2018-07-01 4:01 GMT+02:00 Vojtěch Čihák : > this seems to be misleading error message. TFPGObjectList works well for > objects (classes). When I tried to push record to it, I got the same error > message. TVec3 is not class, right? Indeed, it's a misleading message. The message ...identifier

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Vojtěch Čihák
-Pascal users discussions Datum: 01.07.2018 01:55 Předmět: [fpc-pascal] TFPGObjectList error I’m trying to use TFPGObjectList but I get an error. Is the unit busted? If so is there another generic list class in the RTL? type TVec3List = specialize TFPGObjectList; var list: TVec3List; begin list

[fpc-pascal] TFPGObjectList error

2018-06-30 Thread Ryan Joseph
I’m trying to use TFPGObjectList but I get an error. Is the unit busted? If so is there another generic list class in the RTL? type TVec3List = specialize TFPGObjectList; var list: TVec3List; begin list := TVec3List.Create; list.Add(V3(1,1,1)); list.Free;