Re: [fpc-pascal] Result: string

2013-03-04 Thread José Mejuto
El 04/03/2013 22:16, Michael Van Canneyt escribió: That report says the issue was assigned to Jonas and fixed in revision 20427 (ver 2.6.1). I find the current release (2.6.2) initialises a string function result to EmptyStr as you would hope. [...] Prints AA Hello, I'm asking because today

Re: [fpc-pascal] Result: string

2013-03-04 Thread Flávio Etrusco
On Mon, Mar 4, 2013 at 5:23 PM, Juha Manninen wrote: > On Mon, Mar 4, 2013 at 9:21 PM, José Mejuto wrote: >> What's the expected output of this code ? >> >> function TheA(): string; >> begin >> Result:=Result+'A'; >> end; >> >> writeln(TheA()); >> >> I thought that when the result type is an au

Re: [fpc-pascal] Result: string

2013-03-04 Thread Juha Manninen
On Mon, Mar 4, 2013 at 10:51 PM, Howard Page-Clark wrote: > That report says the issue was assigned to Jonas and fixed in revision 20427 > (ver 2.6.1). > I find the current release (2.6.2) initialises a string function result to > EmptyStr as you would hope. Ok, that sounds good. I must have misu

Re: [fpc-pascal] Result: string

2013-03-04 Thread Michael Van Canneyt
On Mon, 4 Mar 2013, Howard Page-Clark wrote: On 04/03/13 8:23, Juha Manninen wrote: On Mon, Mar 4, 2013 at 9:21 PM, José Mejuto wrote: What's the expected output of this code ? function TheA(): string; begin Result:=Result+'A'; end; writeln(TheA()); I thought that when the result type

Re: [fpc-pascal] Get variable name at runtime

2013-03-04 Thread Sven Barth
Am 04.03.2013 14:39, schrieb dhkblas...@zeelandnet.nl: Hi, How can I retrieve a variable name at runtime? I know about RTTI on classes, what about simple type variables? It's not possible. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] Result: string

2013-03-04 Thread Howard Page-Clark
On 04/03/13 8:23, Juha Manninen wrote: On Mon, Mar 4, 2013 at 9:21 PM, José Mejuto wrote: What's the expected output of this code ? function TheA(): string; begin Result:=Result+'A'; end; writeln(TheA()); I thought that when the result type is an automated one its value gets initialized..

Re: [fpc-pascal] Result: string

2013-03-04 Thread Juha Manninen
On Mon, Mar 4, 2013 at 9:21 PM, José Mejuto wrote: > What's the expected output of this code ? > > function TheA(): string; > begin > Result:=Result+'A'; > end; > > writeln(TheA()); > > I thought that when the result type is an automated one its value gets > initialized... Maybe I'm wrong... Ye

Re: [fpc-pascal] Object pascal language compatiblity - was: Does FPC 2.8.0 can actually still be called Pascal ?

2013-03-04 Thread Florian Klämpfl
Am 04.03.2013 01:24, schrieb Dimitri Smits: > > > - Oorspronkelijk e-mail - >> Van: "Florian Klämpfl" Aan: "FPC-Pascal >> users discussions" Verzonden: >> Vrijdag 1 maart 2013 18:13:42 Onderwerp: Re: [fpc-pascal] Object >> pascal language compatiblity - was: Does FPC 2.8.0 can actua

[fpc-pascal] Result: string

2013-03-04 Thread José Mejuto
Hello, What's the expected output of this code ? function TheA(): string; begin Result:=Result+'A'; end; writeln(TheA()); I thought that when the result type is an automated one its value gets initialized... Maybe I'm wrong... -- ___ fpc-pascal

Re: [fpc-pascal] FreeBSD failure compiling fpdoc 2.7.1

2013-03-04 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > Below is the script I use to compile FPC 2.7.1. I am using FPC 2.6.0 > (I noticed it is still allowed for a while, even though 2.6.2 is out). This is normal, pass -Fl/usr/local/lib in opt (for releases, makepack from fpcbuild does this) Also se

[fpc-pascal] FreeBSD failure compiling fpdoc 2.7.1

2013-03-04 Thread Graeme Geldenhuys
Hi, Below is the script I use to compile FPC 2.7.1. I am using FPC 2.6.0 (I noticed it is still allowed for a while, even though 2.6.2 is out). --[ go.sh ] #!/usr/local/bin/bash TARGET=x86_64-freebsd COMPILER=/data/devel/fpc-2.6.0/$TARGET/bin/ppcx64 gmake clean

Re: [fpc-pascal] Bootstrap binaries

2013-03-04 Thread Joao Morais
On Mon, Mar 4, 2013 at 6:19 AM, Marco van de Voort wrote: > In our previous episode, Joao Morais said: >> How ftp://ftp.freepascal.org/pub/fpc/dist/2.6.2/bootstrap >> like lists are built? I missed at least i386-linux and i386-win32 >> binaries. > > They are simply the compiler binary extracted fr

[fpc-pascal] Re: warning: link.res contains output sections; did you forget -T?

2013-03-04 Thread leledumbo
OOT: How to try the new internal linker? -Xi doesn't seem to trigger it. I see in the changelog it works on *BSD, does it work on linux? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/warning-link-res-contains-output-sections-did-you-forget-T-tp5713334p5713343

[fpc-pascal] Get variable name at runtime

2013-03-04 Thread dhkblaszyk
Hi, How can I retrieve a variable name at runtime? I know about RTTI on classes, what about simple type variables? Regards, Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] warning: link.res contains output sections; did you forget -T?

2013-03-04 Thread Mattias Gaertner
Sorry, I misunderstood the -T warning with the other linker FAQ. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Daemon - OnStop and OnDestroy events never fired?

2013-03-04 Thread Michael Van Canneyt
On Mon, 4 Mar 2013, Krzysztof wrote: I'm stopping by: sudo service my_script.sh stop. Yes, but what signal does that send: SIGTERM probably -> this is a ShutDown. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

Re: [fpc-pascal] Daemon - OnStop and OnDestroy events never fired?

2013-03-04 Thread Krzysztof
I'm stopping by: sudo service my_script.sh stop. Ok so I just use shutdown event instead ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] warning: link.res contains output sections; did you forget -T?

2013-03-04 Thread Mattias Gaertner
On Mon, 4 Mar 2013 14:35:50 +0200 Juha Manninen wrote: > Yes, I know this warning can be ignored, and every active member of > this list knows it, too. > However new users don't know it. Everybody who tries FPC / Lazarus for > the first time will scratch their heads and use Google, trying to find

Re: [fpc-pascal] Daemon - OnStop and OnDestroy events never fired?

2013-03-04 Thread Michael Van Canneyt
On Mon, 4 Mar 2013, Krzysztof wrote: Hi, I have daemon on Linux Mint 14 64bit which working fine, but I noticed that OnStop and OnDestroy events are never fired. I created simple test which write to syslog and create file in my home directory: How do you stop the service ? Stop has no mea

[fpc-pascal] Daemon - OnStop and OnDestroy events never fired?

2013-03-04 Thread Krzysztof
Hi, I have daemon on Linux Mint 14 64bit which working fine, but I noticed that OnStop and OnDestroy events are never fired. I created simple test which write to syslog and create file in my home directory: procedure TTestDaemon.DataModuleStop(Sender: TCustomDaemon; var OK: Boolean); var sl: TStr

Re: [fpc-pascal] warning: link.res contains output sections; did you forget -T?

2013-03-04 Thread Sven Barth
Am 04.03.2013 13:35, schrieb Juha Manninen: Yes, I know this warning can be ignored, and every active member of this list knows it, too. However new users don't know it. Everybody who tries FPC / Lazarus for the first time will scratch their heads and use Google, trying to find out where exactly

[fpc-pascal] warning: link.res contains output sections; did you forget -T?

2013-03-04 Thread Juha Manninen
Yes, I know this warning can be ignored, and every active member of this list knows it, too. However new users don't know it. Everybody who tries FPC / Lazarus for the first time will scratch their heads and use Google, trying to find out where exactly they forgot to put this "-T". My workmate dec

[fpc-pascal] Re: Bootstrap binaries

2013-03-04 Thread Reinier Olislagers
On 4-3-2013 10:48, Reinier Olislagers wrote: > On 4-3-2013 10:19, Marco van de Voort wrote: >> It's mainly a facility for source based package systems like the *bsd ports, >> where the enduser routinely bootstraps compiler + source too. >> (if that is sane, is a different question, specially in FPC

[fpc-pascal] Re: Bootstrap binaries

2013-03-04 Thread Reinier Olislagers
On 4-3-2013 10:19, Marco van de Voort wrote: > In our previous episode, Joao Morais said: >> How ftp://ftp.freepascal.org/pub/fpc/dist/2.6.2/bootstrap >> like lists are built? I missed at least i386-linux and i386-win32 >> binaries. > > They are simply the compiler binary extracted from the relea

Re: [fpc-pascal] Bootstrap binaries

2013-03-04 Thread Marco van de Voort
In our previous episode, Joao Morais said: > How ftp://ftp.freepascal.org/pub/fpc/dist/2.6.2/bootstrap > like lists are built? I missed at least i386-linux and i386-win32 > binaries. They are simply the compiler binary extracted from the release in a bzipped format. It's mainly a facility for so

Re: [fpc-pascal] Bootstrap binaries

2013-03-04 Thread Sven Barth
Am 04.03.2013 09:38 schrieb "Andreas Schneider" : > > On Monday, March 4, 2013, at 01:59 Joao Morais wrote: > > Hello list. How ftp://ftp.freepascal.org/pub/fpc/dist/2.6.2/bootstrap > > like lists are built? I missed at least i386-linux and i386-win32 > > binaries. Just to know how I will update my

Re: [fpc-pascal] Bootstrap binaries

2013-03-04 Thread Andreas Schneider
On Monday, March 4, 2013, at 01:59 Joao Morais wrote: > Hello list. How ftp://ftp.freepascal.org/pub/fpc/dist/2.6.2/bootstrap > like lists are built? I missed at least i386-linux and i386-win32 > binaries. Just to know how I will update my drafts. > Joao Morais I guess bootstrap isn't necessary