Re: [fpc-pascal] List of chars for case

2018-07-01 Thread Dennis
Ryan Joseph wrote: Is there a way to make a constant for a list of chars which I can use in a case statement? I’ve got a bunch of code duplication happening I’d like to clean up. const TChars = ('[', ']', '(', ')', '{', '}', '=', ‘:’); case c of TChars: ... Regards, Rya

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] List of chars for case

2018-07-01 Thread R0b0t1
On Sun, Jul 1, 2018 at 5:51 PM, Ryan Joseph wrote: > Is there a way to make a constant for a list of chars which I can use in a > case statement? I’ve got a bunch of code duplication happening I’d like to > clean up. > > const > TChars = ('[', ']', '(', ')', '{', '}', '=', ‘:’); > > > case c o

[fpc-pascal] List of chars for case

2018-07-01 Thread Ryan Joseph
Is there a way to make a constant for a list of chars which I can use in a case statement? I’ve got a bunch of code duplication happening I’d like to clean up. const TChars = ('[', ']', '(', ')', '{', '}', '=', ‘:’); case c of TChars: ... Regards, Ryan Joseph

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] Daemon using TTimer on Windows

2018-07-01 Thread R0b0t1
On Sun, Jul 1, 2018 at 8:06 AM, Marcos Douglas B. Santos wrote: > On Sat, Jun 30, 2018 at 9:13 PM, R0b0t1 wrote: >> Anyway - does TTimer use the WM_TIMER message? That is the type tied >> to the GUI. Even if you need to use WM_TIMER for some reason you can, >> as services should be run in "sessi

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-01 Thread Marcos Douglas B. Santos
On Sun, Jul 1, 2018 at 2:15 AM, Martin Schreiber wrote: > On Saturday 30 June 2018 22:57:47 Marcos Douglas B. Santos wrote: > >>If not, which could be a possible >> solution? >> > You could use a MSEgui application, instead of > " > uses > msegui; > " > write > " > uses > msenogui; > " > in "pro

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-07-01 Thread Marcos Douglas B. Santos
On Sat, Jun 30, 2018 at 9:13 PM, R0b0t1 wrote: > On Sat, Jun 30, 2018 at 3:57 PM, Marcos Douglas B. Santos > wrote: >> Hi, >> >> I need to build a daemon app on Windows. It will need a timer to >> performe some tasks. This timer could be big among 15 min, 30 min, 2 >> hours, etc. >> >> I thought

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] Loss of precision when using math.Max()

2018-07-01 Thread C Western
On 29/06/18 21:55, Sven Barth via fpc-pascal wrote: Am 29.06.2018 um 18:45 schrieb Alan Krause: I stumbled upon something the other day that was causing numerical differences between compiled Delphi and FPC code. Executing the following sample console application illustrates the issue clearly:

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