Re: [fpc-pascal] Pass open array to static array?

2020-04-12 Thread Ryan Joseph via fpc-pascal
I just came across another related issue to this thread. Is it not possible to init dynamic arrays from static arrays? I remember there being more compatibility between the 2 types but I may have forgotten. var a: array[0..1] of integer; d: array of integer; begin d := a; end. Regards,

Re: [fpc-pascal] Prevent full unit path in ppu files? together with -Ur

2020-04-12 Thread Martin Frb
On 12/04/2020 16:31, Martin wrote: When building packages for an installer, one uses -Ur. Yet (on Windows) I noted, that the ppu contain the full path to the source file used to build that ppu. Not a major issue, but slightly awkward. - The files (ppu, and maybe sources) will be packed into

[fpc-pascal] Prevent full unit path in ppu files? together with -Ur

2020-04-12 Thread Martin
When building packages for an installer, one uses -Ur. Yet (on Windows) I noted, that the ppu contain the full path to the source file used to build that ppu. Not a major issue, but slightly awkward. - The files (ppu, and maybe sources) will be packed into an installer - The end user installs

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread wkitty42
On 4/12/20 10:09 AM, wkitt...@windstream.net wrote: PPS: Bo, if you reply, please include the above PS when you reply to the list so that the list manager(s) can see this and maybe they can/will whitelist the synacor servers... i've had several postings get blocked in recent days because of

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread wkitty42
On 4/12/20 8:26 AM, Bo Berglund via fpc-pascal wrote: I am used to *not* hide files anytime both on Windows (where I always configure the explorer to show hidden files) and on Linux where I always use an ls -la alias ll in order not to hide files. Never understood the reason for hiding stuff...

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread wkitty42
On 4/12/20 7:55 AM, Michael Van Canneyt wrote: All your OOTB problems can be solved without a single line of code change in the compiler. Just create a script that people should use to compile instead of directly using the 'fpc' command, and specify the config  file in the script, and any

Re: [fpc-pascal] Wiki Image Database Corruption

2020-04-12 Thread Florian Klämpfl
Am 12.04.20 um 03:28 schrieb Trev: I've been trying to attract the attention of someone/anyone with virtual access to the Wiki webserver to fix the corrupted image database since January. I've tried (in order): * Wiki Feedback page: https://wiki.freepascal.org/Site_Feedback * Forums:

Re: [fpc-pascal] Wiki Image Database Corruption

2020-04-12 Thread Jonas Maebe
On 12/04/2020 03:28, Trev wrote: > I've been trying to attract the attention of someone/anyone with virtual > access to the Wiki webserver to fix the corrupted image database since > January. At least one of the backtraces you posted doesn't seem to point to a corrupted database, but to a bug in

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Michael Van Canneyt
On Sun, 12 Apr 2020, fredvs via fpc-pascal wrote: I would think this is about the biggest failure of all for a compiler ? Imo, the worst thing is when the compilation is ok but code are bad interpreted. simply because unix does not do this. OK, like I did for all my arguments, can you

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread fredvs via fpc-pascal
>I would think this is about the biggest failure of all for a compiler ? Imo, the worst thing is when the compilation is ok but code are bad interpreted. > simply because unix does not do this. OK, like I did for all my arguments, can you prove that? I never hear that is was forbidden to place

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Bo Berglund via fpc-pascal
On Sun, 12 Apr 2020 12:16:20 +0200 (CEST), Michael Van Canneyt wrote: >You can hardly blame us for you not remembering things... :-) > >> Why does fpc look for .fpc.cfg in the user home dir when it is >> otherwise looking for fpc.cfg? > >Because the naming convention on unixes is like that for

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Michael Van Canneyt
On Sun, 12 Apr 2020, fredvs via fpc-pascal wrote: committed in rev. 44697 Yep, excellent! Note that this still may cause surprises, because paramstr(0) is not 100% reliable. Hum, ok, but I assume to take the risk. Finally, the worst that can happen is fail to compil. I would think

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread fredvs via fpc-pascal
> committed in rev. 44697 Yep, excellent! > Note that this still may cause surprises, because paramstr(0) is not 100% reliable. Hum, ok, but I assume to take the risk. Finally, the worst that can happen is fail to compil. Nice, FPC is nearly OOTB now. Only miss a very, very little patches: the

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Michael Van Canneyt
On Sun, 12 Apr 2020, Sven Barth via fpc-pascal wrote: Why does fpc look for .fpc.cfg in the user home dir when it is otherwise looking for fpc.cfg? Because the naming convention on unixes is like that for config files in your home directory. This is not fpc specific. This convention

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Sven Barth via fpc-pascal
Michael Van Canneyt schrieb am So., 12. Apr. 2020, 12:16: > > > On Sun, 12 Apr 2020, Bo Berglund via fpc-pascal wrote: > > > On Fri, 10 Apr 2020 13:44:17 -0700 (MST), fredvs via fpc-pascal > > wrote: > > > >> 2)Your home directory, it looks for .fpc.cfg. > > > > This is something I have

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Michael Van Canneyt
On Sun, 12 Apr 2020, Bo Berglund via fpc-pascal wrote: On Fri, 10 Apr 2020 13:44:17 -0700 (MST), fredvs via fpc-pascal wrote: 2)Your home directory, it looks for .fpc.cfg. This is something I have been wondering about for a while.. When I install FPC from sources I have to create a

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Bo Berglund via fpc-pascal
On Fri, 10 Apr 2020 13:44:17 -0700 (MST), fredvs via fpc-pascal wrote: >2)Your home directory, it looks for .fpc.cfg. This is something I have been wondering about for a while.. When I install FPC from sources I have to create a config file by using this command:

[fpc-pascal] Wiki Image Database Corruption

2020-04-12 Thread Trev
I've been trying to attract the attention of someone/anyone with virtual access to the Wiki webserver to fix the corrupted image database since January. I've tried (in order): * Wiki Feedback page: https://wiki.freepascal.org/Site_Feedback * Forums:

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Michael Van Canneyt
On Sat, 11 Apr 2020, fredvs via fpc-pascal wrote: I did try this without luck: -Fu$PPC_EXEC_PATH/units/$fpctarget -Fu$PPC_EXEC_PATH/units/$fpctarget/* -Fu$PPC_EXEC_PATH/units/$fpctarget/rtl PPC_EXEC_PATH is an environment variable, not a compiler variable. see globals.pas:

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Michael Van Canneyt
On Sat, 11 Apr 2020, fredvs via fpc-pascal wrote: I promise, it is the last for tonight. It would be wonderful if in /compiler/globals.pas, at line 906, you add this line (or something like that): { Replace some macros }

Re: [fpc-pascal] Error format question

2020-04-12 Thread Sven Barth via fpc-pascal
Ryan Joseph via fpc-pascal schrieb am So., 12. Apr. 2020, 08:53: > > > > On Apr 12, 2020, at 11:16 AM, Ryan Joseph wrote: > > > > I just did svn up and got r44689, rebuilt the compiler but I still get > the same error format. Was it supposed to be changed? > > ok, I think we're confused here.

Re: [fpc-pascal] Error format question

2020-04-12 Thread Ryan Joseph via fpc-pascal
> On Apr 12, 2020, at 11:16 AM, Ryan Joseph wrote: > > I just did svn up and got r44689, rebuilt the compiler but I still get the > same error format. Was it supposed to be changed? ok, I think we're confused here. Just actually tested gcc and got this format: