Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
On Wed, 26 Mar 2014 11:25:19 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] Keep in mind that /tmp/link/unit1.pas and /tmp/orig/uni1.pas must be treated as two different files and within one project you must use only one of them. There you are wrong. They must be

Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
On Wed, 26 Mar 2014 12:07:01 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: On Wed, 26 Mar 2014, Mattias Gaertner wrote: [...] You seem to think tcsh-specific behaviour is the correct way to do things. ;) Well, actually I don't think in such terms. I think that the system

Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
On Wed, 26 Mar 2014 13:37:32 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] But I am arguing that when passing filenames/paths to other tools (including the compiler), you should always specify full filenames. The IDE passes all search paths as full file paths, especially

Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
On Wed, 26 Mar 2014 14:31:19 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] What problem do they have? /tmp/link is a valid file name. Only because it is a full path. Then it doesn't matter whether you resolve or not. But things like ../link may end up wildly on

Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
On Wed, 26 Mar 2014 15:19:29 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] I tested, and indeed: # include_directories .ascii ../../tmp/link\000 I think this is an error in FPC, because the linker file contains full paths: INPUT(

Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
On Wed, 26 Mar 2014 15:33:38 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] So ? You just need to check the inode. Is there a function to list all files pointing to an inode? Actually, you just need to know if 2 filenames point to the same inode. And what 2 files

Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
. But this requires adapting all relative paths, which can not be done automatically in general. GetCurrentDir always returns the resolved physical file name. Mattias On Tue, 25 Mar 2014 19:14:17 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: Hi, When I start fpc in a directory

Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
On Wed, 26 Mar 2014 18:47:06 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] The compiler does not do anything special: it determines its current working directory using the RTL, meaning it gets the resolved current working directory. I described the situation from a

Re: [fpc-pascal] fpc in symlinked directory

2014-03-26 Thread Mattias Gaertner
On Wed, 26 Mar 2014 23:19:57 +0100 Tomas Hajny xhaj...@hajny.biz wrote: On 26 Mar 14, at 23:05, Mattias Gaertner wrote: On Wed, 26 Mar 2014 18:47:06 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] The compiler does not do anything special: it determines its

Re: [fpc-pascal] fpc in symlinked directory

2014-03-27 Thread Mattias Gaertner
On Thu, 27 Mar 2014 08:16:11 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] I described the situation from a user's pov. Somewhere it should be documented. I will do so. Thanks. BTW, is there already a RTL function to resolve a file name? fpReadLink ? Or

Re: [fpc-pascal] Access fpc libraries with Java ?

2014-03-28 Thread Mattias Gaertner
On Fri, 28 Mar 2014 09:55:47 +0100 Helmut Weber h-g-we...@t-online.de wrote: Java is quite similar to C or C++. What kind of Java are you talking about? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] A Regular Expression failing on the borders of words

2014-04-10 Thread Mattias Gaertner
On Thu, 10 Apr 2014 02:43:41 -0300 luciano de souza luchya...@gmail.com wrote: [...] r.expression := '^(x\s+)*(\([A-E]\))*(\s*.*\.)+(\s+\+.*\b)*(\s+@.*\b)*$'; if r.exec('x (A) Write a report. +ABC +DEF @John @Mary') then The (\s+\+.*\b) matches '+ABC +DEF @John @Mary'. Mattias

Re: [fpc-pascal] A Regular Expression failing on the borders of words

2014-04-10 Thread Mattias Gaertner
On Thu, 10 Apr 2014 10:05:44 -0300 luciano de souza luchya...@gmail.com wrote: Well, I need to study more. I can't understand what is wrong. The match starts with a blank space: \s+. Some string follows: .*. And it ends in the border of word: \b. So, (\s+.*\b)*, for me, should return: +ABC

Re: [fpc-pascal] how to use macros on linux?

2014-04-14 Thread Mattias Gaertner
On Mon, 14 Apr 2014 12:29:00 -0400 waldo kitty wkitt...@windstream.net wrote: when i try to compile a program on my non-GUI linux, it tells me that it can't find the programs... hunh? fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas These are Lazarus macros. so how do i use macros to

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-24 Thread Mattias Gaertner
On Wed, 23 Apr 2014 11:43:39 -0300 silvioprog silviop...@gmail.com wrote: [...] But in SourceForge still in lazarus-1.2.0-fpc-2.6.2-win32.exe. It took some time, before sf shows the new default. Mattias ___ fpc-pascal maillist -

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-24 Thread Mattias Gaertner
On Wed, 23 Apr 2014 17:42:13 -0400 m...@rpzdesign.com m...@rpzdesign.com wrote: When trying to install lazarus 1.2.2 on Linux Fedora 14: fpc-2.6.4-1.x86_64.rpm does not install. Shows error: lazarus-1.2.0-0.x86_64 requires fpc = 2.6.2-130317 Try installing all three, fpc, fpc-src and

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-24 Thread Mattias Gaertner
On Thu, 24 Apr 2014 09:50:21 + (UTC) Virgo Pärna virgo.pa...@mail.ee wrote: On Wed, 23 Apr 2014 16:34:54 +0200, Mattias Gaertner nc-gaert...@netcologne.de wrote: The Lazarus team is glad to announce the release of Lazarus 1.2.2. Windows (64 bit) download points to 32 bit

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-24 Thread Mattias Gaertner
On Thu, 24 Apr 2014 10:20:19 + (UTC) Virgo Pärna virgo.pa...@mail.ee wrote: On Thu, 24 Apr 2014 12:04:14 +0200, Mattias Gaertner nc-gaert...@netcologne.de wrote: See the announcement: Windows x64 users: please use the 32 bit installer if possible. See http

Re: [fpc-pascal] Android/JNI control example

2014-04-24 Thread Mattias Gaertner
On Thu, 24 Apr 2014 15:48:15 +0300 patspiper patspi...@gmail.com wrote: Hi, With the successful preliminary implementation of java events calling pascal code, my next step is to try to integrate android's visual controls. Can anyone give a very basic example using pascal/JNI only (even

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-24 Thread Mattias Gaertner
On Thu, 24 Apr 2014 15:48:46 +0100 Martin Frb laza...@mfriebe.de wrote: On 24/04/2014 11:27, Mattias Gaertner wrote: On Thu, 24 Apr 2014 10:20:19 + (UTC) Virgo Pärna virgo.pa...@mail.ee wrote: On Thu, 24 Apr 2014 12:04:14 +0200, Mattias Gaertner nc-gaert...@netcologne.de wrote

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-25 Thread Mattias Gaertner
On Fri, 25 Apr 2014 14:52:55 +0200 Krzysztof dib...@wp.pl wrote: I noticed something weird in 1.2.2. When finishing debugging (by pressing Stop icon) codeeditor can't restore position cursor. I need to switch tab and back again and then it is ok. Kubuntu 14.04 64bit What do you mean with

Re: [fpc-pascal] problem with the opengl unit

2014-05-04 Thread Mattias Gaertner
On Sun, 4 May 2014 14:40:35 +0200 YuGiOhJCJ Mailing-List yugiohjcj-mailingl...@laposte.net wrote: This is where fpc is searching: $ fpc -vt bounce.pp | grep unit path Using unit path: /usr/lib/fpc/2.6.4/units/i386-linux/rtl/ Using unit path: /usr/lib/fpc/2.6.4/ These are the default unit

Re: [fpc-pascal] override or virtual override

2014-05-05 Thread Mattias Gaertner
On Mon, 5 May 2014 08:05:47 +0200 Sven Barth pascaldra...@googlemail.com wrote: [...] override is an implicit virtual as long as the parameter lists of both methods are the same. Huh? If they are not the same, it won't compile. Mattias ___

[fpc-pascal] 2.6.4 RPM and Deb archives are still in preparation?

2014-05-13 Thread Mattias Gaertner
Hi, The download mirrors shows The 2.6.4 RPM and Deb archives are still in preparation. Are they still? For example: http://www.freepascal.org/down/i386/linux-australia.var Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] For-in-loop question about GetEnumerator

2014-05-16 Thread Mattias Gaertner
On Fri, 16 May 2014 23:13:43 +0200 Krzysztof dib...@wp.pl wrote: [...] This article is quite clear for me: http://wiki.freepascal.org/for-in_loop [...] ... then FList.GetEnumerator create new object (TListEnumerator.Create(Self)). My question is, where it is freed? Is it freed automatically

Re: [fpc-pascal] For-in-loop question about GetEnumerator

2014-05-17 Thread Mattias Gaertner
On Fri, 16 May 2014 23:13:43 +0200 Krzysztof dib...@wp.pl wrote: Hi, This article is quite clear for me: http://wiki.freepascal.org/for-in_loop I added a note to the example, that the enumerator is automatically freed by the compiler after the loop. Mattias

Re: [fpc-pascal] For-in-loop question about GetEnumerator

2014-05-17 Thread Mattias Gaertner
On Sat, 17 May 2014 13:18:01 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Am 2014-05-17 10:39, schrieb Mattias Gaertner: I added a note to the example, that the enumerator is automatically freed by the compiler after the loop. I just had a look at the UTF8 example

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Mattias Gaertner
On Wed, 21 May 2014 11:11:11 +0200 Peter Brooks peter.bro...@kchclinics.com wrote: I've got a little program that just pings. It runs. I get a 0 error return, but there doesn't seem to be any output: -rw-r--r-- 1 root wheel 0 21 May 11:09 output.txt So it's re-writing the output.txt

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Mattias Gaertner
On Wed, 21 May 2014 13:00:58 +0200 Peter Brooks peter.bro...@kchclinics.com wrote: Sorry, I misled you. I did move it higher up, earlier, to test something, and I forgot to put it back. This version has exactly the same behaviour: -rw-r--r-- 1 peterbrooks wheel 0 21 May 13:00

Re: [fpc-pascal] Ping problems - OS/X

2014-05-21 Thread Mattias Gaertner
On Wed, 21 May 2014 21:44:10 +0200 Peter Brooks peter.bro...@kchclinics.com wrote: Yes, thank you. The best thing I've learned is to be suspicious of examples... I've got it now, thank you all for the assistance. I took AStringList.Add() to mean that it added the string to the list of

[fpc-pascal] fpc stderr broken?

2014-05-26 Thread Mattias Gaertner
Hi all, When I compile a program with a duplicate $R directive fpc (2.6.4) gives an error. Unlike other error messages this error is written to stderr (under Linux and OS X). Running fpc in a shell seems to always work. The output/stdout and stderr are both written nicely together. But when the

Re: [fpc-pascal] fpc stderr broken?

2014-05-26 Thread Mattias Gaertner
On Mon, 26 May 2014 16:46:01 +0200 (CEST) Michael Van Canneyt mich...@freepascal.org wrote: On Mon, 26 May 2014, Mattias Gaertner wrote: Hi all, When I compile a program with a duplicate $R directive fpc (2.6.4) gives an error. Unlike other error messages this error is written

Re: [fpc-pascal] Thread Safety of String

2014-06-04 Thread Mattias Gaertner
On Wed, 04 Jun 2014 15:03:31 -0400 Saunders, Rich greym...@mykolab.com wrote: [...] Whether static variables are more or less thread safe is for you to decide since you know what you are doing with them. I don't think either short strings or Strings are inherently more or less thread safe.

Re: [fpc-pascal] Thread Safety of String

2014-06-05 Thread Mattias Gaertner
On Thu, 05 Jun 2014 09:37:57 +0200 Michael Schnell mschn...@lumino.de wrote: On 06/04/2014 08:04 PM, joha...@nacs.net wrote: I would expect shortstring might be thread safe. Only a simple write (not a modification) of processor-native types is inherently atomic and thus really thread save.

Re: [fpc-pascal] Thread Safety of String

2014-06-05 Thread Mattias Gaertner
On Thu, 05 Jun 2014 09:51:05 +0200 Michael Schnell mschn...@lumino.de wrote: On 06/05/2014 09:42 AM, Mattias Gaertner wrote: Only a simple write (not a modification) of processor-native types is inherently atomic and thus really thread save. No. What do you want to say

[fpc-pascal] Lazarus 1.2.4 Release

2014-06-16 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.2.4. This release was built with fpc 2.6.4. The previous release 1.2.2 was built with 2.6.4 too, the release 1.2.0 was built with fpc 2.6.2. Here is the list of changes for Lazarus and Free Pascal:

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 juergen.hesterm...@gmx.de 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 phili...@quarta.com.br 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

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

2014-09-18 Thread Mattias Gaertner
On Thu, 18 Sep 2014 09:43:21 +0200 LacaK la...@zoznam.sk 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

Re: [fpc-pascal] PostMessage vs. QueueAsyncCall

2014-09-19 Thread Mattias Gaertner
On Fri, 19 Sep 2014 17:20:27 +0800 Xiangrong Fang xrf...@gmail.com 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

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Mattias Gaertner
On Wed, 1 Oct 2014 13:39:39 -0700 (PDT) Brian v...@golden.net 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

Re: [fpc-pascal] Free Pascal Directories

2014-10-01 Thread Mattias Gaertner
On Wed, 1 Oct 2014 15:16:13 -0700 (PDT) Brian v...@golden.net 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

Re: [fpc-pascal] Free Pascal Directories

2014-10-02 Thread Mattias Gaertner
On Thu, 2 Oct 2014 18:40:01 -0300 silvioprog silviop...@gmail.com 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] 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

[fpc-pascal] section keyword

2014-10-22 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

[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 -

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 mich...@freepascal.org 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/docs/rtl/sysutils/fileage.html

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 jonas.ma...@elis.ugent.be 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

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 jonas.ma...@elis.ugent.be 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

[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 phili...@quarta.com.br 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

Re: [fpc-pascal] red( clGrayText)

2014-12-01 Thread Mattias Gaertner
On Mon, 01 Dec 2014 22:01:15 -0200 Philippe phili...@quarta.com.br 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

[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 sounds

Re: [fpc-pascal] AnsiStrLComp AnsiStrLIComp

2014-12-08 Thread Mattias Gaertner
On Mon, 8 Dec 2014 13:22:42 +0100 Jonas Maebe jonas.ma...@elis.ugent.be 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 #0 or does it not? http

Re: [fpc-pascal] AnsiStrLComp AnsiStrLIComp

2014-12-08 Thread Mattias Gaertner
On Mon, 8 Dec 2014 17:36:43 +0100 (CET) Michael Van Canneyt mich...@freepascal.org 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

Re: [fpc-pascal] Error while linking

2015-01-02 Thread Mattias Gaertner
On Fri, 02 Jan 2015 15:39:39 +0100 Jonas Maebe jonas.ma...@elis.ugent.be 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

Re: [fpc-pascal] Error while linking

2015-01-02 Thread Mattias Gaertner
On Fri, 2 Jan 2015 16:13:26 +0100 Krzysztof dib...@wp.pl wrote: 2015-01-02 15:51 GMT+01:00 Mattias Gaertner nc-gaert...@netcologne.de: 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 lazarus message

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

2015-01-19 Thread Mattias Gaertner
On Mon, 19 Jan 2015 08:17:52 -0500 Dmitry Boyarintsev skalogryz.li...@gmail.com 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

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 sys...@gmail.com 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

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 silviop...@gmail.com 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

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 valerio.turr...@gmail.com 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.

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 mailingli...@geldenhuys.co.uk 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?

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 mailingli...@geldenhuys.co.uk 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,

[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

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 el.es...@gmail.com 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

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 juergen.hesterm...@gmx.de 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

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 el.es...@gmail.com 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...

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

2015-03-23 Thread Mattias Gaertner
On Mon, 23 Mar 2015 10:13:54 + vfclists . vfcli...@gmail.com 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

Re: [fpc-pascal] Use sleep in thread

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

Re: [fpc-pascal] Use sleep in thread

2015-03-01 Thread Mattias Gaertner
On Sat, 28 Feb 2015 19:20:49 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk 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.

[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

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 then again: When came

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 jonas.ma...@elis.ugent.be 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_TARGET=win32

[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

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

2015-02-23 Thread Mattias Gaertner
On Mon, 23 Feb 2015 10:08:45 + Graeme Geldenhuys mailingli...@geldenhuys.co.uk 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

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

2015-02-24 Thread Mattias Gaertner
On Tue, 24 Feb 2015 09:30:37 + Graeme Geldenhuys mailingli...@geldenhuys.co.uk 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.

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 mschn...@lumino.de 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

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 el.es...@gmail.com wrote: On 26/02/15 11:12, Mattias Gaertner wrote: On Thu, 26 Feb 2015 10:09:33 + Lukasz Sokol el.es...@gmail.com wrote: I got : dpkg: error processing fpc-src_2.6.4-140420_i386.deb (--install): trying

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 el.es...@gmail.com 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

[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

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 rainerstratm...@t-online.de 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

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 yann.merig...@gmail.com 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 mailingli...@geldenhuys.co.uk 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

[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] Basic Windows tutorial

2015-10-24 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

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

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

2015-10-20 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 >

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 <nc-gaert...@netcologne.de> wrote: > On Sun, 4 Oct 2015 19:17:14 +0100 > Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote: > > > On 2015-10-04 19:14, Graeme Geldenhuys wrote: > > > I can't rememb

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 <jonas.ma...@elis.ugent.be> 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 -g

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

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 >

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

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 -

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...

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] *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

[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

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 <jonas.ma...@elis.ugent.be> 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

[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 -

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