Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-11 Thread Santiago A.
El 11/10/2016 a las 14:15, Marcos Douglas escribió: > > But what I do, for years, is import my units using an order by That's what everybody does, otherwise you run into a troubles. The problem is when you change the order unnoticed The problem is when you use non standard packages and you don't

Re: [fpc-pascal] Build script on Windows

2016-10-11 Thread Sandro Cumerlato
I find convenient create a batch file "_buil.bat" to compile a specific project under Windows, targeting bot i386 and x86_64 in sequence at once. You can add parameters to set searching paths, output directory, compiler flags, etc... it is hard retype the entire command line every time. Best

Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-11 Thread Marcos Douglas
On Tue, Oct 11, 2016 at 7:21 AM, Santiago A. wrote: > My two cents: > > Whenever there is a conflict, an ambiguity, you must full qualify the > identifier otherwise the compiler will complain. > For the special cases, when you need to hide the declaration, you could > use the

Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-11 Thread Santiago A.
El 11/10/2016 a las 10:03, Marco van de Voort escribió: > In our previous episode, Santiago A. said: >> I think that "automatic overriding" is a wrong design from the first >> turbo pascal and should be fixed. The need of overriding system >> functions like memory managers is a corner case to

Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-11 Thread Marco van de Voort
In our previous episode, Santiago A. said: > > > > A different route would to fix that (like Modula2 or "qualified" importing > > like in again M2 but also GPC). > My two cents: > > Whenever there is a conflict, an ambiguity, you must full qualify the > identifier otherwise the compiler will

Re: [fpc-pascal] The Next Release

2016-10-11 Thread Marco van de Voort
In our previous episode, Tony Whyman said: > What's the timetable for the next release? Should be out 2 months ago. Problems with documentation tool are delaying. > Can we assume that all of > "trunk" will be in it or will it be more nuanced? It is a fixes to 3.0 only, no new language

Re: [fpc-pascal] Smart Link definition ?

2016-10-11 Thread fredvs
fredvs wrote: > In ld doc: > http://sourceware.org/binutils/docs-2.16/ld/Options.html > > > => -X --discard-locals > Delete all temporary local symbols. For most targets, this is all local > symbols whose names begin with L. > >

Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-11 Thread Marcos Douglas
On Tue, Oct 11, 2016 at 11:57 AM, Santiago A. wrote: > Being aware of the order is a workaround that works, but it doesn't mean > that relying on the order is the best idea. Of course, no doubts about it. Regards, Marcos Douglas

[fpc-pascal] The Next Release

2016-10-11 Thread Tony Whyman
What's the timetable for the next release? Can we assume that all of "trunk" will be in it or will it be more nuanced? Tony Whyman MWA ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] The Next Release

2016-10-11 Thread Sven Barth
Am 11.10.2016 19:57 schrieb "Tony Whyman" : > > What's the timetable for the next release? Can we assume that all of "trunk" will be in it or will it be more nuanced? The next release will be 3.0.2 (soonish) which will contain quite some fixes compared to 3.0.0,

Re: [fpc-pascal] Using for-loop index variable after loop

2016-10-11 Thread Virgo Pärna
On Mon, 10 Oct 2016 14:07:35 +0200, Vojtěch Čihák wrote: >       then Break; >   Isn't leaving for loop with break only case, where loop variable will keep the value. Otherwise it is undefined. But it does make the code more confusing. -- Virgo Pärna

Re: [fpc-pascal] Smart Link definition ?

2016-10-11 Thread Jonas Maebe
fredvs wrote: > In ld doc: > http://sourceware.org/binutils/docs-2.16/ld/Options.html > > > => -X --discard-locals > Delete all temporary local symbols. For most targets, this is all local > symbols whose names begin with L. > > I

Re: [fpc-pascal] Smart Link definition ?

2016-10-11 Thread Jonas Maebe
LacaK wrote: > What is difference between "Link smart (-XX)" and "Smart linkable (-XC)" ? > -XC is by default off and corresponds to per unit {$SMARTLINK OFF/ON} ? -CX (not -XC) means "generate code that can be smart linked by the linker if you specify -XX while compiling a program that uses

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-11 Thread Michael Schnell
On 07.10.2016 17:19, Graeme Geldenhuys wrote: there goes my idea of using RPi's as small stand-alone servers. :-/ Pi 3 does feature a 64 Bit CPU. (AFAIK, no 64 Bit Linux for same, yet. BSD: no idea) -Michael ___ fpc-pascal maillist -

Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-11 Thread LacaK
One problem is, that documentation of SysUtils.LowerCase is not correct regarding to System.LowerCase http://www.freepascal.org/docs-html/rtl/sysutils/lowercase.html : "... It is completely equivalent to the *lowercase function of the system unit*" But another problem, which I have pointed

Re: [fpc-pascal] Smart Link definition ?

2016-10-11 Thread LacaK
Hi, What is difference between "Link smart (-XX)" and "Smart linkable (-XC)" ? -XC is by default off and corresponds to per unit {$SMARTLINK OFF/ON} ? Does it means, that compiler/linker is trying "Link smart", but only units marked "Smart linkable" ? Which means, that when I use in my program

Re: [fpc-pascal] Smart Link definition ?

2016-10-11 Thread LacaK
What is difference between "Link smart (-XX)" and "Smart linkable (-XC)" ? -XC is by default off and corresponds to per unit {$SMARTLINK OFF/ON} ? -CX (not -XC) means "generate code that can be smart linked by the linker if you specify -XX while compiling a program that uses this unit".

Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-11 Thread Marco van de Voort
In our previous episode, Santiago A. said: > I think that "automatic overriding" is a wrong design from the first > turbo pascal and should be fixed. The need of overriding system > functions like memory managers is a corner case to treat, not a reason > to not solve the unexpected hide of

Re: [fpc-pascal] Build script on Windows

2016-10-11 Thread Jonas Maebe
Ryan Joseph wrote: > I’m doing some tests with SDL and I’d like to build the program to work on > Windows. I’d like to to automate the build with a script but I can’t seem to > figure out even the basics of how to make this work (I develop on Mac). I > used Lazarus briefly but it seemed easier

Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-11 Thread Santiago A.
El 05/10/2016 a las 9:23, Graeme Geldenhuys escribió: > On 2016-10-05 08:11, LacaK wrote: >> Now I understand what happens, but isn't it bit confusing ? > Yup, I would agree, and if possible, one should be removed. Yes and no. Yes, probably in this case one of them should be removed, but the

Re: [fpc-pascal] Build script on Windows

2016-10-11 Thread Ryan Joseph
> On Oct 11, 2016, at 2:04 PM, Jonas Maebe wrote: > > FPC is installed by default in c:\fpc, I think. The compiler binaries > are somewhere under there (c:\fpc\bin\win32 or so?). I think our > installer adds this directory to your PATH by default under Windows, so >

Re: [fpc-pascal] Build script on Windows

2016-10-11 Thread Sven Barth
Am 11.10.2016 10:35 schrieb "Ryan Joseph" : > Ok, I did some more research and found that fpc is at c:\lazarus\fpc\2.6.4\bin\i386-win32 and a “dir” command shows there is a fpc.exe that works. Note just “fpc” doesn’t work so I guess I need to add that myself but I’m