Re: [fpc-pascal] with statement using mulltiple objects

2014-09-13 Thread Mattias Gaertner
On Sat, 13 Sep 2014 20:29:32 +0100 "vfclists ." wrote: >[...] > What then is the nesting for if the command will only apply to the last > item with the property? The compiler searches the identifier in the last With, then in the second last With, ..., then in the local variables, then in the pa

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-14 Thread Mattias Gaertner
On Sun, 14 Sep 2014 11:58:22 +0200 Jürgen Hestermann wrote: > Am 2014-09-13 22:31, schrieb Marius: > > Mattias Gaertner wrote: > > All seasoned programmers know that and try to avoid the with statement. The quote is from Marius, not from me. > Realy? I love it. Consider

Re: [fpc-pascal] with statement using mulltiple objects

2014-09-16 Thread Mattias Gaertner
On Tue, 16 Sep 2014 07:26:24 -0300 Philippe wrote: > > > could the compiler avoid "with" pitfalls? > > now the compiler attach > a property to the closest "with" where it finds it. > > the compiler could > check if the property appears in another "with" of the "with" stack and > produce a

Re: [fpc-pascal] ReadXMLFile in fcl-xml package

2014-09-18 Thread Mattias Gaertner
On Thu, 18 Sep 2014 09:43:21 +0200 LacaK wrote: > Hi, > I use ReadXMLFile from fcl-xml package to read XML file in UTF-8 encoding. > Then I parse Nodes and use TextContent property which is string in > system encoding ... but I need it in UTF-8 encoding. > So I use again UTF8Encode(Node.TextCont

Re: [fpc-pascal] PostMessage vs. QueueAsyncCall

2014-09-19 Thread Mattias Gaertner
On Fri, 19 Sep 2014 17:20:27 +0800 Xiangrong Fang wrote: >[...] > My question is, why cannot Lazarus just use PostMessage, but invent the > QueueAsyncCall() method? What is the rationale, or, why PostMessage is > considered windows-ish (read: not fit into LCL very well?), apart from the > fact t

Re: [fpc-pascal] Hack for C-like macro functions — will it work in future?

2014-09-24 Thread Mattias Gaertner
On Wed, 24 Sep 2014 07:12:44 -0300 Philippe wrote: > > > -OoREMOVEEMPTYPROCS > > interesting! > > why is it not available in > Lazarus through "all options" window (in project options / customizable > options)? It is available under Compiler Options / Other / All Options You need fp

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Mattias Gaertner
On Wed, 1 Oct 2014 13:39:39 -0700 (PDT) Brian wrote: > Sorry , I wasn't specific about my problem. Using the example in the fpGUI > distribution (but the following comments are not specific to fpGUI). > > I want to use Geany as the IDE without using .CFG files and compiling from > the commandlin

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Mattias Gaertner
On Wed, 1 Oct 2014 15:16:13 -0700 (PDT) Brian wrote: >[...] > > Do you have an example of how you can pass the unit paths via -Fu in Geany > > ? If you don't know how to do this in Geany, maybe it is not a good editor choice for you. You use the command line from the terminal: fpc -Fufpgui/fpgu

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Mattias Gaertner
On Thu, 2 Oct 2014 18:40:01 -0300 silvioprog wrote: >[...] > But it would be an nice feature in Free Pascal, something like the "import" > of Python and Java. =) Java requires a CLASSPATH for the imports to work, does it not? Mattias ___ fpc-pascal ma

[fpc-pascal] Lazarus 1.2.6 Release

2014-10-14 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.2.6. This release was built with fpc 2.6.4. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org http://wiki.lazarus.freepascal.org/Lazarus_1.2_fixes_branch#Fixes_for_1.2.6_.28Merged.29 http://wi

[fpc-pascal] section keyword

2014-10-21 Thread Mattias Gaertner
Hi, I didn't find it in the reference. How does the section keyword work and where is it allowed? const devcfg3: longWord = 3; section '.devcfg3'; Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

[fpc-pascal] FileAge and timezone

2014-10-29 Thread Mattias Gaertner
Hi, The docs of FileAge does not mention if timezone is used or not. http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/fileage.html Is the returned OS time stamp with or without timezone? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepa

Re: [fpc-pascal] FileAge and timezone

2014-10-30 Thread Mattias Gaertner
On Thu, 30 Oct 2014 14:40:56 +0100 (CET) Michael Van Canneyt wrote: > > > On Thu, 30 Oct 2014, Mattias Gaertner wrote: > > > Hi, > > > > The docs of FileAge does not mention if timezone is used or not. > > > > http://lazarus-ccr.sourceforge.net/doc

Re: [fpc-pascal] Mixing PIC non-PIC code/variables when linking a shared library

2014-11-17 Thread Mattias Gaertner
On Mon, 17 Nov 2014 16:13:40 +0100 Jonas Maebe wrote: > > Dmitry Boyarintsev wrote on ma, 17 nov 2014: > > > So based on the bug report description: "There is no problem with other LCL > > components" > > I guess LCL itself was compiled with PIC flag as well (though, not > > mentioned in the re

Re: [fpc-pascal] Mixing PIC non-PIC code/variables when linking a shared library

2014-11-18 Thread Mattias Gaertner
On Tue, 18 Nov 2014 11:03:03 +0100 Jonas Maebe wrote: >[...] > Yes, but "x86-64" is apparently bit too broad: > * it's added for x86-64/(freebsd, openbsd, netbsd, linux, solaris) > * for Darwin, -Cg is always on by default on all platforms, but this > is done in the compiler itself (because it'

[fpc-pascal] Default value resourcestring

2014-11-28 Thread Mattias Gaertner
Hi, How can I get the defaultvalue of a single resourcestring? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] red( clGrayText)

2014-12-01 Thread Mattias Gaertner
On Mon, 01 Dec 2014 15:17:04 -0200 Philippe wrote: > > > using -Cr (Range Check) option, red( clGrayText) as example, throw > an exception! > > how should I program "red" (or green, blue and may be > some others) functions to avoid that? > > should I write red( clGrayText > and $ff) ?

Re: [fpc-pascal] red( clGrayText)

2014-12-01 Thread Mattias Gaertner
On Mon, 01 Dec 2014 22:01:15 -0200 Philippe wrote: >[...] > http://wiki.lazarus.freepascal.org/Colors#System_colors [1] > > > > I have seen it ... but did not catch that it may not work > with red( x) ... making it more simple, it means that the range of > values used for those constants as clGr

[fpc-pascal] AnsiStrLComp AnsiStrLIComp

2014-12-04 Thread Mattias Gaertner
Hi, According to the docs AnsiStrLComp treats #0 as normal characters, which sounds as if it does not stop at #0. Does it stop at #0 or does it not? http://www.freepascal.org/docs-html/rtl/sysutils/ansistrlcomp.html The doc of AnsiStrLIComp says "compares the first MaxLen characters", which sound

Re: [fpc-pascal] AnsiStrLComp AnsiStrLIComp

2014-12-08 Thread Mattias Gaertner
On Mon, 8 Dec 2014 13:22:42 +0100 Jonas Maebe wrote: > > On 04 Dec 2014, at 16:24, Mattias Gaertner wrote: > > > According to the docs AnsiStrLComp treats #0 as normal characters, > > which sounds as if it does not stop at #0. > > Does it stop at

Re: [fpc-pascal] AnsiStrLComp AnsiStrLIComp

2014-12-08 Thread Mattias Gaertner
On Mon, 8 Dec 2014 17:36:43 +0100 (CET) Michael Van Canneyt wrote: >[...] > > Michael, can you add a comment to this example, that runs beyond the > > strings: > > Testit('One string','One smaller string',255); > > ? There is no #0 character. So what does this example prove ? I'm not sure if ev

Re: [fpc-pascal] Error while linking

2015-01-02 Thread Mattias Gaertner
On Fri, 02 Jan 2015 15:39:39 +0100 Jonas Maebe wrote: > On 02/01/15 15:31, Krzysztof wrote: > > One of my project just started fail on compilation. Other projects > > compile fine. In lazarus message window I get only "Error: Error while > > linking". Normally in that case, more details were prin

Re: [fpc-pascal] Error while linking

2015-01-02 Thread Mattias Gaertner
On Fri, 2 Jan 2015 16:13:26 +0100 Krzysztof wrote: > 2015-01-02 15:51 GMT+01:00 Mattias Gaertner : > > > > > To see all messages in Lazarus use the popup menu of the > > Messages window (right click). > > > > Thank you Mattias! lgmime-2.6 was hidden in laza

Re: [fpc-pascal] character escaping with ^LETTER

2015-01-19 Thread Mattias Gaertner
On Mon, 19 Jan 2015 08:17:52 -0500 Dmitry Boyarintsev wrote: >[...] > a:=^M; // char(13) >[...] > CodeTools syntax highlighter won't recognize the syntax as characters > either (delphi 7 highlighter doesn't recognize it as a character escaping > as well) FYI: Codetools do not have a syntax hig

Re: [fpc-pascal] Some features for FPC 3.0?

2015-02-17 Thread Mattias Gaertner
On Tue, 17 Feb 2015 14:25:11 -0300 silvioprog wrote: >[...] > It would be nice if FPC adopt RC versions. So anyone could do tests just > installing it via setup, instead of using GIT / SVN. And Lazarus RCs could > be release using this RCs FPCs (e.g: Lazarus-1.4-RC1 has FPC-3.0.0-RC1). > > - RCs

Re: [fpc-pascal] Record helpers on built in types?

2015-02-18 Thread Mattias Gaertner
On Tue, 17 Feb 2015 22:56:18 -0500 Anthony Walter wrote: > Dmitry: > > See this function and test if against a large block of text doing a case > insensitive replace on a moderate length phrase. Match it in speed against > whatever is in the RTL and see if my function is faster and by how much.

Re: [fpc-pascal] fpc-arm-embedded bin doesn't run

2015-02-19 Thread Mattias Gaertner
On Wed, 18 Feb 2015 16:02:53 -0700 (MST) turro75 wrote: > ok, > > as I told in the previous post, I 'm now able to run and debug code with the > trunk fpc (3.1.1). > I just made some minor changes in t_embed.pas in order to automatically > create also the bin and call size. > Debugging works "f

[fpc-pascal] Differences between ppc386 and ppcross386

2015-02-23 Thread Mattias Gaertner
Hi, What are the differences between ppc386 and ppcross386? Related question: When calling "fpc -Pi386" it searches for ppc386, but not for ppcross386. Why is that? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] TThread.Queue vs TThread.Synchronize

2015-02-23 Thread Mattias Gaertner
On Mon, 23 Feb 2015 10:08:45 + Graeme Geldenhuys wrote: > Hi, > > I've recently seen some posts in Delphi groups that the preferred way is > to use TThread.Queue instead of TThread.Synchronize. > > Why is that? What are the benefits? Synchronize waits for the main thread. Queue does not. B

Re: [fpc-pascal] Differences between ppc386 and ppcross386

2015-02-23 Thread Mattias Gaertner
On Mon, 23 Feb 2015 12:02:52 +0100 Jonas Maebe wrote: > > On 23 Feb 2015, at 11:40, Mattias Gaertner wrote: > > > What are the differences between ppc386 and ppcross386? > > ppcross386 gets compiled as part of a cross build (e.g. when > performing "make all OS_

Re: [fpc-pascal] TThread.Queue vs TThread.Synchronize

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 09:30:37 + Graeme Geldenhuys wrote: > On 2015-02-23 19:49, Philippe Lévi wrote: > > if code in thread access a local variable (in stack) of the function > > where thread is issued ... it may access "something" which does not > > exist any more. correct? > > Good question,

Re: [fpc-pascal] TThread.Queue vs TThread.Synchronize

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 11:23:41 +0100 Michael Schnell wrote: > On 02/24/2015 11:12 AM, Sven Barth wrote: > > > > > > AFAIK Delphi doesn't use the term "closures" though conceptually > > anonymous functions (as implemented by Delphi) are one way to achieve > > them. > > > What is the advantage of u

Re: [fpc-pascal] fpc-src_2.6.4-140420_i386 from debs at sourceforge : error while processing dpkg install

2015-02-26 Thread Mattias Gaertner
On Thu, 26 Feb 2015 10:09:33 + Lukasz Sokol wrote: > I got : > " > dpkg: error processing fpc-src_2.6.4-140420_i386.deb (--install): > trying to overwrite > '/usr/share/fpcsrc/2.6.4/packages/postgres/src/postgres3.pp', which is also > in package fpc-source-2.6.4 2.6.4+dfsg-4~bpo70+1 > " >

Re: [fpc-pascal] fpc-src_2.6.4-140420_i386 from debs at sourceforge : error while processing dpkg install

2015-02-26 Thread Mattias Gaertner
On Thu, 26 Feb 2015 12:12:01 + Lukasz Sokol wrote: > On 26/02/15 11:12, Mattias Gaertner wrote: > > On Thu, 26 Feb 2015 10:09:33 + > > Lukasz Sokol wrote: > > > >> I got : > >> " > >> dpkg: error processing fpc-src_2.6.4-1

[fpc-pascal] the unexplained 666

2015-03-01 Thread Mattias Gaertner
Hi, Today I stumbled (again) over TFileStream and it contains the constant 438: constructor TFileStream.Create(const AFileName: string; Mode: Word); begin Create(AFileName,Mode,438); end; You need several searches to find out what the 438 actually is. For example its fpdoc page does not expl

Re: [fpc-pascal] the unexplained 666

2015-03-01 Thread Mattias Gaertner
On Sun, 1 Mar 2015 16:11:06 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: > In our previous episode, Mattias Gaertner said: > > Why not write &666? Maybe some religious reasons? ;) > > No, simply that octal literal support is newer than the *nix rtl. ok, although th

Re: [fpc-pascal] Use sleep in thread

2015-03-01 Thread Mattias Gaertner
On Sat, 28 Feb 2015 19:20:49 + Mark Morgan Lloyd wrote: >[...] > Looking at > http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial#Initialization_and_Finalization > > there are dire warnings that TThread.Create() shouldn't be overridden. That is nonsense. Unless you pl

Re: [fpc-pascal] Use sleep in thread

2015-03-02 Thread Mattias Gaertner
On Mon, 02 Mar 2015 09:05:42 + Mark Morgan Lloyd wrote: > Mattias Gaertner wrote: > > On Sat, 28 Feb 2015 19:20:49 + > > Mark Morgan Lloyd wrote: > > > >> [...] > >> Looking at > >> http://wiki.lazarus.freepascal.org/Multithreaded_Appl

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Mattias Gaertner
On Tue, 10 Mar 2015 08:48:49 + Lukasz Sokol wrote: > On 10/03/15 06:10, Jürgen Hestermann wrote: >[...] > > Why not simply omit these messages (for managed types)? > > Just because YOU don't need it, doesn't mean it's useless for everybody... > > http://www.freepascal.org/docs-html/prog/pro

[fpc-pascal] JVM

2015-03-10 Thread Mattias Gaertner
Hi, I tried to build ppcjvm and failed. I followed the wiki instructions: http://wiki.freepascal.org/FPC_JVM/Building fpcmake of 3.1.1 is in PATH. make CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=java clean all It stops Error: Assembler jasmin.jar not found, switching to external assembling I tr

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Mattias Gaertner
On Tue, 10 Mar 2015 12:04:37 + Lukasz Sokol wrote: >[...] > > For example in Lazarus 1.3+ you can right click the message and > > click on "Hide with project option (-vm5089)". > > Cool, but probably not what I meant ;) as this hides it project-wide ? Yes. I guess that is what Jürgen wants.

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Mattias Gaertner
On Tue, 10 Mar 2015 18:08:14 +0100 Jürgen Hestermann wrote: > Am 2015-03-10 um 17:40 schrieb Sven Barth: > > > It mutes the warning with the ID 5089 (the ID can be seen with -vq). So > as long as the managed and unmanaged ones use the same warning ID (AFAIR they > do) they will both be silence

Re: [fpc-pascal] PtrInt - possible candidate to be marked as deprecated

2015-03-18 Thread Mattias Gaertner
On Wed, 18 Mar 2015 14:53:50 + Graeme Geldenhuys wrote: > Based on what the documentation says "introduction of ptrint type was a > mistake", shouldn't the PtrInt type be marked as deprecated in FPC 3.0.0 > and removed in a later release like 3.0.2 or 3.2.0? > > http://www.freepascal.org/doc

Re: [fpc-pascal] PtrInt - possible candidate to be marked as deprecated

2015-03-18 Thread Mattias Gaertner
On Wed, 18 Mar 2015 15:29:14 + Graeme Geldenhuys wrote: > On 2015-03-18 15:23, Tony Whyman wrote: > > PtrInt is used in that very useful method TApplication.QueueAsync > > Call. > > Though I never used the QueueAsync() call myself, but looking at the > declaration, shouldn't that data type

Re: [fpc-pascal] Mode Delphi and functions as parameters.

2015-03-23 Thread Mattias Gaertner
On Mon, 23 Mar 2015 10:13:54 + "vfclists ." wrote: >[...] > More questions on Mode Delphi. > > 1. Does Mode Delphi simply allow Delphi syntax to be compiled, or does it > also affect the code generation, like data structures, pointer handling, > parameter handling / calling conventions, stac

[fpc-pascal] Release of Lazarus 1.4

2015-04-22 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.4. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.2.6. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_1.4.0_release_notes http://wiki.lazarus.freepasca

Re: [fpc-pascal] Release of Lazarus 1.4

2015-04-22 Thread Mattias Gaertner
On Wed, 22 Apr 2015 13:41:18 +0200 Rainer Stratmann wrote: > Are there screenshots? > Is it with the new layout, one Window only? No. You can install anchordockdsgn package to get one window. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepa

Re: [fpc-pascal] Lazarus, FreePascal, and translated compiler messages

2015-05-06 Thread Mattias Gaertner
On Wed, 6 May 2015 10:55:43 +0200 Yann Mérignac wrote: > Hi, > > I am part of a team that is reviewing the French translation of Lazarus. > The French language has accented characters. These characters are not > displayed in the message window of Lazarus. Fixed. Mattias __

Re: [fpc-pascal] Why does fpc copies *.lfm files to unit output directory

2015-05-12 Thread Mattias Gaertner
On Tue, 12 May 2015 10:26:04 +0100 Graeme Geldenhuys wrote: > Hi, > > I don't know when this started, but fpc copies *.lfm files to the unit > output directory. Then turns around and complains about duplicate *.lfm > files? Though the complaint about duplicate files might be from Lazarus > IDE -

[fpc-pascal] Release of Lazarus 1.4.2

2015-07-14 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.4.2. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.4.0. Here is the list of fixes for Lazarus 1.4.2: http://wiki.freepascal.org/Lazarus_1.4_fixes_branch#Fixes_for_1.4.2_.28Merged.29 Here is the list of

Re: [fpc-pascal] Installing fpc

2015-09-08 Thread Mattias Gaertner
On Tue, 8 Sep 2015 11:21:18 +0200 "Tomas Hajny" wrote: >[...] > > I do think that Steph means the FPC tar as Lazarus does AFAIK not have a > > tar-installer like FPC does... True. It provides a source tar (and a zip) though. > Alright, could be. However, if this is the case, I'm afraid that t

Re: [fpc-pascal] Resourcestrings in FPC 3.0

2015-09-24 Thread Mattias Gaertner
On Thu, 24 Sep 2015 09:10:06 +0200 Martin Schreiber wrote: >[...] > Another question, it looks to me that -Fcutf8 does not work like {$codepage > utf8} for string constants. What do you mean? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freep

Re: [fpc-pascal] How to compile Lazarus program using only FPC?

2015-09-24 Thread Mattias Gaertner
On Thu, 24 Sep 2015 16:21:31 +0100 Graeme Geldenhuys wrote: > On 2015-09-24 16:14, Michael Van Canneyt wrote: > > Since the projects in question are lazarus projects to begin with, this is > > a non-issue. > > Yes for LCL based apps. If I had to be technical... Lazarus IDE can > "manage" other

Re: [fpc-pascal] *SPAM* Re: How to compile Lazarus program using only FPC?

2015-09-25 Thread Mattias Gaertner
On Fri, 25 Sep 2015 11:16:55 +0200 Michael Schnell wrote: > On 09/25/2015 11:09 AM, Sven Barth wrote: > > > > > "Lazarus" is the name for two completely different things > > > > ... please don't introduce confusion where there is none. > > > I suppose this confusion already is ubiquitous (and min

Re: [fpc-pascal] FileIO in FPC 3.0

2015-09-25 Thread Mattias Gaertner
On Fri, 25 Sep 2015 13:47:22 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: >[...] > BSD/Linux afaik has the same problem. The filesystem is binary, not textual. > The textual aspect is only interpretation. Yes. I see invalid UTF-8 file names on Linux systems often (cannot be converted

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Mattias Gaertner
On Sun, 4 Oct 2015 12:37:29 +0100 Graeme Geldenhuys wrote: > On 2015-10-03 19:30, Bo Berglund wrote: > > But how could one exchange a running program on the pi from within > > itself? > > On non-Windows platforms it is much easier, because you can normally > replace a program on file, while it i

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-04 Thread Mattias Gaertner
On Sun, 4 Oct 2015 19:17:14 +0100 Graeme Geldenhuys wrote: > On 2015-10-04 19:14, Graeme Geldenhuys wrote: > > I can't remember what it is called, but I can find the name if > > I search for it > > I think it was called "SELinux" - Security-Enhanced Linux. If it would be a security barrier, it

Re: [fpc-pascal] Methods for autoupdating fpc programs?

2015-10-05 Thread Mattias Gaertner
On Sun, 4 Oct 2015 21:06:57 +0200 Mattias Gaertner wrote: > On Sun, 4 Oct 2015 19:17:14 +0100 > Graeme Geldenhuys wrote: > > > On 2015-10-04 19:14, Graeme Geldenhuys wrote: > > > I can't remember what it is called, but I can find the name if > > > I search

[fpc-pascal] Lazarus Release 1.4.4

2015-10-06 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.4.4. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.4.2. Here is the list of fixes for Lazarus 1.4.4: http://wiki.freepascal.org/Lazarus_1.4_fixes_branch#Merged_revisions_for_1.4.4 Here is the list of ch

Re: [fpc-pascal] Lazarus Release 1.4.4

2015-10-06 Thread Mattias Gaertner
On Tue, 6 Oct 2015 19:23:26 +0200 Jonas Maebe wrote: > On 06/10/15 19:13, Mattias Gaertner wrote: > > Important note for Mac OS X: OS X 10.10 Yosemite no longer supports the > > default debugging format of FPC 2.6.4 (-g stabs). Lazarus now uses -gw > > (dwarf) instead on da

Re: [fpc-pascal] Loading PNG files as OpenGL textures

2015-10-15 Thread Mattias Gaertner
On Thu, 15 Oct 2015 15:30:41 +0700 Ryan Joseph wrote: > > > On Oct 14, 2015, at 1:49 PM, Michael Van Canneyt > > wrote: > > > > Type > > TMyImage = Class(TFPCompactImgRGBA8Bit) > > Public > > property Data : PFPCompactImgRGBA8BitValue read FData; > > end; > > > > > > Should do it. Or if y

Re: [fpc-pascal] Delphi-FPC difference in handling TList

2015-10-19 Thread Mattias Gaertner
On Tue, 20 Oct 2015 08:31:57 +0200 Bo Berglund wrote: > I am porting a Delphi class to FPC and I ran into a problem concerning > TList: > > FCommands.Sort(CommandCompare); > > This generates an error: > Error: Wrong number of parameters specified for call to > "CommandCompare" > > This call wo

Re: [fpc-pascal] Basic Windows tutorial

2015-10-23 Thread Mattias Gaertner
On Sat, 24 Oct 2015 09:36:25 +0700 Ryan Joseph wrote: >[...] > I started a project using the “simple application” template which made a > console window I don’t really want. Is there a way to remove that window? I > don’t see any code which is creating it. > > Can I route STDOUT (does that exi

[fpc-pascal] fppkg compiler upgrade

2015-11-22 Thread Mattias Gaertner
Hi, I have fpc 2.6.4 on Linux and "fppkg list" shows the 2.6.4 packages. Then I install fpc 3.1.1 using "make install". fppkg still shows the 2.6.4 packages. What is the proper way of upgrading fppkg? The wiki page does not tell me: http://wiki.lazarus.freepascal.org/fppkg Mattias

Re: [fpc-pascal] fppkg compiler upgrade

2015-11-23 Thread Mattias Gaertner
On Sun, 22 Nov 2015 20:55:14 -0700 (MST) leledumbo wrote: > > What is the proper way of upgrading fppkg? > > $ rm ~/.fppkg/config/default > > now rerun fppkg, it should create a new config. if it still shows 2.6.4, > that means your 3.1.1 is inaccessible or has lower precedence than your > 2.6

Re: [fpc-pascal] FPC 3.x for Windows and code page conversion

2015-11-23 Thread Mattias Gaertner
On Mon, 23 Nov 2015 16:43:18 +0100 Lubos Pintes wrote: > Hello, > I am developing a console application which receives an UTF-8 encoded > text through stdin. > The text is, after possible modification, sent to SAPI5. The SAPI5 > generated interface wrappers have parameters of type string. > In

Re: [fpc-pascal] Implementing Factory Method with Pascal

2015-11-27 Thread Mattias Gaertner
One solution: var animal: TDog; BEGIN animal := TAnimalFactory.create(atDog) as TDog; try animal.bark; finally animal.free; end; END. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi

Re: [fpc-pascal] FPC Pestering Peacock (3.0.0) release

2015-12-02 Thread Mattias Gaertner
On Wed, 25 Nov 2015 22:52:04 +0100 Joost van der Sluis wrote: >[...] > Downloads are available at our website: > http://www.freepascal.org/download.var I can't find the Linux rpm/deb packages on Sourceforge. The other sites have them. Is this by design? Mattias _

Re: [fpc-pascal] FPC Pestering Peacock (3.0.0) release

2015-12-02 Thread Mattias Gaertner
On Wed, 02 Dec 2015 15:37:18 +0100 Jonas Maebe wrote: > > Mattias Gaertner wrote on Wed, 02 Dec 2015: > > > I can't find the Linux rpm/deb packages on Sourceforge. The other sites > > have them. > > Is this by design? > > The rpms are at > http://

[fpc-pascal] Win32 download still showing 2.6.4

2015-12-03 Thread Mattias Gaertner
Hi, When I go to www.freepascal.org, click Downloads, Intel/i386, Win32 Only Sourceforge has 3.0.0. Austria, Hungary and Netherlands still show: The latest release version is 2.6.4. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.o

[fpc-pascal] Unicode file names

2015-12-04 Thread Mattias Gaertner
Hi, fpcres fails on Windows with paths containing non ASCII characters. The compiler itself happily compiles units. FPC 3.0.0 and 3.1.1. Is that a regression? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

Re: [fpc-pascal] Unicode file names

2015-12-05 Thread Mattias Gaertner
On Sat, 5 Dec 2015 12:55:42 +0100 (CET) Michael Van Canneyt wrote: > > > On Sat, 5 Dec 2015, Mattias Gaertner wrote: > > > Hi, > > > > fpcres fails on Windows with paths containing non ASCII characters. The > > compiler itself happily compiles units. FP

Re: [fpc-pascal] Unicode file names

2015-12-05 Thread Mattias Gaertner
On Sat, 5 Dec 2015 13:44:08 +0100 Jonas Maebe wrote: > On 05/12/15 13:36, Mattias Gaertner wrote: > > On Sat, 5 Dec 2015 12:55:42 +0100 (CET) > > Michael Van Canneyt wrote: > > > >> On Sat, 5 Dec 2015, Mattias Gaertner wrote: > >> > >>> fpcr

[fpc-pascal] fpdoc project file

2015-12-06 Thread Mattias Gaertner
Hi, The 3.1.1 fpdoc -h help has some confusing items. Can someone explain them please: --project=fileUse file as project file --write-project=file Do not write documentation, create project file instead --write-project=file Write all command-line options to

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Mattias Gaertner
On Mon, 07 Dec 2015 21:52:35 +0100 Bo Berglund wrote: > On Mon, 7 Dec 2015 20:27:12 +0100 (CET), Michael Van Canneyt > wrote: >[...] > 1) Went to http://www.freepascal.org/down/i386/linux-hungary.var > > 2) Downloaded the "everything" file > ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.0/i386-

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Mattias Gaertner
On Mon, 07 Dec 2015 23:15:50 +0100 Bo Berglund wrote: > On Mon, 7 Dec 2015 22:16:26 +0100, Mattias Gaertner > wrote: > > >> Now I have to deal with Lazarus, but that is another list/forum... > > > >Lazarus needs libgtk2.0-dev, which should automatically insta

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Mattias Gaertner
On Mon, 07 Dec 2015 23:36:17 +0100 Jonas Maebe wrote: > Michael Van Canneyt wrote: > > I believe fpc 3.0 is in debian experimental, but it would be a very bad > > idea to use that in linux mint. > > If you limit yourself to just using FPC from Debian experimental, I > don't think there's much t

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Mattias Gaertner
On Mon, 07 Dec 2015 23:47:36 +0100 Bo Berglund wrote: >[...] > >I have not tried on Linux-Mint. > >Can you test? > > I did as follows: > sudo apt-get install libgtk2.0-dev > > It pulled no less than 73 different packages Debian is great at splitting packages into smaller packages. Does La

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Mattias Gaertner
On Mon, 07 Dec 2015 23:56:56 +0100 Bo Berglund wrote: >[...] > Target OS: Linux for i386 > Compiling lazres.pp > Linking ./lazres > Warning: "crti.o" not found, this will probably cause a linking > failure > Warning: "crtn.o" not found, this will probably cause a linking > failure > /usr/bin/ld:

Re: [fpc-pascal] Can fpc 3.0 release be installed using apt-get on Linux Mint?

2015-12-07 Thread Mattias Gaertner
On Tue, 8 Dec 2015 00:21:28 +0100 Mattias Gaertner wrote: > On Mon, 07 Dec 2015 23:56:56 +0100 > Bo Berglund wrote: > > >[...] > > Target OS: Linux for i386 > > Compiling lazres.pp > > Linking ./lazres > > Warning: "crti.o" not found, this will

Re: [fpc-pascal] FPC Unicode / CodePage aware strings

2015-12-10 Thread Mattias Gaertner
On Thu, 10 Dec 2015 12:17:28 +0100 Jonas Maebe wrote: >[...] > > Try {$codepage utf8}. > > That won't change anything, because {$mode delphiunicode} implies "use > the default system code page to interpret the source code", and that's > UTF-8 on his system. Does that mean a {$mode delphiuni

Re: [fpc-pascal] FPC Unicode / CodePage aware strings

2015-12-10 Thread Mattias Gaertner
On Thu, 10 Dec 2015 12:02:31 + Graeme Geldenhuys wrote: > On 2015-12-10 11:16, Jonas Maebe wrote: > > There is no such thing as "official FPC Unicode". We added support for > > codepage-aware ansistrings. We added unicodestring overloads for a > > Does the type UnicodeString always mean

Re: [fpc-pascal] set code page

2015-12-17 Thread Mattias Gaertner
On Thu, 17 Dec 2015 13:36:17 +0100 Dariusz Mazur wrote: > Hi >is there possible to set codepage {$codepage xxx} to cp_none Do you mean CP_ACP? > for example one source file have {$codepage 1250} but rest i need > default (without any setting) Mattias ___

[fpc-pascal] Linker error

2015-12-17 Thread Mattias Gaertner
Hi, What could be the cause of this linker error: main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet /usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in

[fpc-pascal] buggy debian package

2015-12-17 Thread Mattias Gaertner
Hi, Debian has a FPC 3.0.0 package called "rc-buggy". https://packages.debian.org/search?keywords=fpc&searchon=names&suite=all§ion=all Is it just me, or does "buggy" sound a bit below awesome? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freep

Re: [fpc-pascal] Linker error

2015-12-18 Thread Mattias Gaertner
On Fri, 18 Dec 2015 11:30:00 +0100 Jonas Maebe wrote: > > Mattias Gaertner wrote on Fri, 18 Dec 2015: > > > What could be the cause of this linker error: > > > > main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet > > /usr/bin/ld.bfd: warning

Re: [fpc-pascal] Constructor question

2016-01-09 Thread Mattias Gaertner
On Sat, 9 Jan 2016 21:46:19 +0100 Bart wrote: > Hi, > > Is this legal Pascal? > > uses > classes,sysutils; > > type > { TA } > TA = class > protected > F1: Integer; > F2: Integer; > public > constructor Create; virtual; > end; > { TB } > TB = Class(TA) > con

[fpc-pascal] location modifier

2016-01-18 Thread Mattias Gaertner
Hi, I can't find the 'location' modifier in the docs. Is it missing? For example: function bsd_socket(Domain: LongInt location 'd0'; Type_: LongInt location 'd1'; Protocol: LongInt location 'd2'): LongInt; syscall SocketBase 30; See for example packages/rtl-extra/src/amiga/sockets.pp Mattias _

Re: [fpc-pascal] location modifier

2016-01-18 Thread Mattias Gaertner
On Mon, 18 Jan 2016 16:40:17 +0100 (CET) Michael Van Canneyt wrote: > > > On Mon, 18 Jan 2016, Mattias Gaertner wrote: > > > Hi, > > > > I can't find the 'location' modifier in the docs. Is it missing? > > I didn't even know thi

Re: [fpc-pascal] location modifier

2016-01-18 Thread Mattias Gaertner
On Mon, 18 Jan 2016 16:59:49 +0100 (CET) "Karoly Balogh (Charlie/SGR)" wrote: >[...] > And there's no need to take educated guesses, it's all documented in the > wiki: > > http://wiki.freepascal.org/Amiga#Introduction_to_SysCalls > http://wiki.freepascal.org/MorphOS#Introduction_to_SysCalls > >

Re: [fpc-pascal] Pascal Lexical Diagrams

2016-01-30 Thread Mattias Gaertner
On Sat, 30 Jan 2016 04:45:27 -0500 Anthony Walter wrote: > I've been working on writing Javascript to generate lexical language > diagrams for the getlazarus.org learning center portal. > > With my script I'm able to render these diagrams which will be appear under > the Free Pascal language Lex

Re: [fpc-pascal] buggy debian package

2016-02-01 Thread Mattias Gaertner
On Mon, 01 Feb 2016 13:30:51 +0100 Jonas Maebe wrote: >[...] > FWIW, last weekend FPC 3.0 was promoted from Debian Experimental to > Debian Unstable. Awesome :) Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] Please someone explain this to me

2016-02-10 Thread Mattias Gaertner
> Sven Barth hat am 10. Februar 2016 um 15:09 > geschrieben: > [...] > > The {%...} directive is a comment in other contexts and can be used safely. > > What about include files included by other include files? That is no problem for the MainUnit directive. The directive tells the codetools the

Re: [fpc-pascal] Please someone explain this to me

2016-02-11 Thread Mattias Gaertner
> Michael Van Canneyt hat am 11. Februar 2016 um 04:27 > geschrieben: >[...] > Lazarus IDE shows a tooltip when you hover over an identifier with the mouse. > I suspect it will take one on the team less than 10-minutes to add the unit > name to the tooltip, in addition to the package and source fi

Re: [fpc-pascal] Please someone explain this to me

2016-02-11 Thread Mattias Gaertner
On Wed, 10 Feb 2016 05:10:55 -0500 Anthony Walter wrote: >[...] > Additionally, and in a different scenario, when the identifier IS defined > and several units are in the uses clause the goto declaration can jump to > an include file without any information pertaining to which of the units is > i

Re: [fpc-pascal] Happy tickets benchmark

2016-02-14 Thread Mattias Gaertner
On Sun, 14 Feb 2016 10:11:54 +0100 Florian Klaempfl wrote: >[...] > For the record: with a few changes in the compiler I could reduce the > execution time of the example significantly . But I won't commit it > probably (maybe parts of it): extensive loop unrolling and loop > invariant search has

Re: [fpc-pascal] Happy tickets benchmark

2016-02-14 Thread Mattias Gaertner
On Sun, 14 Feb 2016 10:35:22 +0100 Florian Klaempfl wrote: >[...] > Do you think people will bother? Nobody mentioned to the original poster > so far: > - that the used FPC is outdated > - that only -O2 is used instead of -O3 (or -O4 with 3.0.0) > - that even FPC 2.6.4 has a -Ooloopunroll option

[fpc-pascal] Lazarus Release 1.6

2016-02-18 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.6. This release was built with FPC 3.0.0. The previous release Lazarus 1.4.4 was built with FPC 2.6.4. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes http://wiki.

Re: [fpc-pascal] IsValidIdent() with dots

2016-03-23 Thread Mattias Gaertner
On Wed, 23 Mar 2016 10:28:15 +0200 Juha Manninen wrote: > Hi > > Is there a function like IsValidIdent but accepting also dots (.), > as in name "TForm1.Action1Execute"? FPC 3.1.1 has function IsValidIdent(const Ident: string; AllowDots: Boolean = False; StrictDots: Boolean = False): Boolean;

[fpc-pascal] Default source encoding

2016-03-31 Thread Mattias Gaertner
Hi, According to http://wiki.freepascal.org/index.php?title=FPC_Unicode_support#String_constants "the constant strings are assumed to have code page 28591 (ISO 8859-1 Latin 1; Western European)." Is this true? Or is the compiler using the system codepage? It was added in this revision by Jona

<    2   3   4   5   6   7   8   9   10   11   >