Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread Sven Barth
Am 17.07.2012 01:10 schrieb "waldo kitty" : > > On 7/15/2012 08:13, Jonas Maebe wrote: >> >> On 15 Jul 2012, at 14:05, CA Gorski wrote: >> >>> How to declare a variable of class method type of function? >>> >>> ... >>> var >>> MyVar: function(AParam: string): boolean of class; >>> ... >>> gives

Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread waldo kitty
On 7/15/2012 08:13, Jonas Maebe wrote: On 15 Jul 2012, at 14:05, CA Gorski wrote: How to declare a variable of class method type of function? ... var MyVar: function(AParam: string): boolean of class; ... gives an error using FPC 2.6.1 (Win64). You have to use "of object", just like for

[fpc-pascal] Re: fcl-passrc package question about source file and line number info

2012-07-16 Thread Seth Grover
> I should have fixed both problems you found. Please test, rev 21922. > Michael. It did fix those problems, but there's still a problem in the release given the following unit with a finalization section: === unit testlib; interface implementation final

Re: [fpc-pascal] Re: fcl-passrc package question about source file and line number info

2012-07-16 Thread Michael Van Canneyt
On Mon, 16 Jul 2012, Seth Grover wrote: I think I found another problem with the latest revision of fcl-passrc in svn trunk. I should have fixed both problems you found. Please test, rev 21922. Michael. ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 16-7-2012 18:41, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: Whoopsie, error in the patch: this: - merged P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); into P.SourcePath.Add('src/sqldb/sqlite',

[fpc-pascal] Re: fcl-passrc package question about source file and line number info

2012-07-16 Thread Seth Grover
I think I found another problem with the latest revision of fcl-passrc in svn trunk. Given this source file as input to the test_parser program: === unit timelib; interface implementation procedure SortIndexHashTable; begin try except if (h <> nil) the

[fpc-pascal] Re: fcl-passrc package question about source file and line number info

2012-07-16 Thread Seth Grover
Michael wrote: > Please check revision 21909. > I haven't done much testing, because I didn't get to the test cases for > statements yet. Michael, I grabbed what's currently up in the svn trunk under fcl-passrc. I am getting the source filename and line number information now, so that's great. I

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 18:41, Mark Morgan Lloyd wrote: > Reinier Olislagers wrote: > >> Whoopsie, error in the patch: this: >>> - merged >>> P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); >>> P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); >>> into >>> P.SourcePath.Add('src/sqldb/sqlite', Sqld

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: Whoopsie, error in the patch: this: - merged P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes); P.SourcePath.Add('src/sqldb/sqlite', SqliteOSes); into P.SourcePath.Add('src/sqldb/sqlite', SqldbConnectionOSes+SqliteOSes); for clarity on who gets sqlite wasn't t

[fpc-pascal] Re: Cross platform signal handler?

2012-07-16 Thread leledumbo
Thanks, that's closer, I hope the linux ifdef could be replaced with unix (Mac OS X is *nix, right?). I wonder why we don't have it at RTL level... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Cross-platform-signal-handler-tp5710328p5710355.html Sent from the

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 15:58, Reinier Olislagers wrote: > On 16-7-2012 15:15, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: >> On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: >> >>> michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: >>> > On a side note: > My quoted paragraph doesn't menti

Re: [fpc-pascal] Re: Cross platform signal handler?

2012-07-16 Thread Andreas Schneider
On Sunday, July 15, 2012, at 14:48 leledumbo wrote: >> It will depend on what you want to achive. So, what do you need it for? > Handle Ctrl+C and other kinds of forced program termination. Take a look here http://hg.aksdb.de/CentrED/files/3bf040abc0311f68ad6c90486625fac2ce914c80/Server/UCEDServe

Re: [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mattias Gaertner
On Mon, 16 Jul 2012 13:49:13 + Mark Morgan Lloyd wrote: >[...] > > Remove the ibconnection unit or put it in an {$IFNDEF SOLARIS}. (or should > > that be SUNOS ?) > > > > You'll have to remove TIBConnection from the registercomponents call as > > well. > > > > If that works, we'll put it in

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 15:15, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: > > > On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: > >> michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: >> On a side note: My quoted paragraph doesn't mention FreeBSD, but I have successfully ran Fi

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal: C

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: > > different issue. I'd neither be surprised nor particularly sorry if that > > turned out to be x86-only. > > Apparently, it is available for your platform too. > > Strange that it was removed from trunk, though. We'll need to re-enable

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: michael.vancann...@wisa.be wrote: On a side note: My quoted paragraph doesn't mention FreeBSD, but I have successfully ran Firebird Server & clients under FreeBSD 9.0 on x86, and there are FreeBSD downloads on the Firebird website for 2.1.x and o

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On a side note: My quoted paragraph doesn't mention FreeBSD, but I have successfully ran Firebird Server & clients under FreeBSD 9.0 on x86, and there are FreeBSD downloads on the Firebird website for 2.1.x and older. So just because the latest version doesn't c

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Graeme Geldenhuys wrote: Hi, On 16 July 2012 12:29, Reinier Olislagers wrote: Yep, and there's a 2.1.4 download at http://www.firebirdsql.org/en/news/firebird-2-1-4-builds-for-solaris-intel-x86-32-and-64-bits-available-12615/ On a side note: My quoted paragraph does

Re: [fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Graeme Geldenhuys
Hi, On 16 July 2012 12:29, Reinier Olislagers wrote: >> > Yep, and there's a 2.1.4 download at > http://www.firebirdsql.org/en/news/firebird-2-1-4-builds-for-solaris-intel-x86-32-and-64-bits-available-12615/ On a side note: My quoted paragraph doesn't mention FreeBSD, but I have successfully ran

Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread Jonas Maebe
On 16 Jul 2012, at 13:18, CA Gorski wrote: > > On 15.07.2012 15:35, Jonas Maebe wrote: >> That seems to be a bug in ObjFPC mode procvar support. It works in Delphi >> mode. Please always include a complete test program in the future, so that >> people wanting to help you don't have to write mu

[fpc-pascal] Re: RE : Database problem on Solaris SPARC

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 13:26, Graeme Geldenhuys wrote: > On 16 July 2012 12:16, > wrote: >> >> I don't think Firebird works on Solaris or SPARC cpus, so it makes no sense >> to compile in firebird support on that platform. > > Wrong! > >>From the Firebird website: "Firebird 2.5 runs on Windows (32- and

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Graeme Geldenhuys
On 16 July 2012 12:16, wrote: > > I don't think Firebird works on Solaris or SPARC cpus, so it makes no sense > to compile in firebird support on that platform. Wrong! >From the Firebird website: "Firebird 2.5 runs on Windows (32- and 64-bit), various Linux versions (32- and 64- bit), Solaris

Re: [fpc-pascal] Variable of class method type of function

2012-07-16 Thread CA Gorski
On 15.07.2012 15:35, Jonas Maebe wrote: That seems to be a bug in ObjFPC mode procvar support. It works in Delphi mode. Please always include a complete test program in the future, so that people wanting to help you don't have to write multiple test programs themselves to figure out what the

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Mark Morgan Lloyd wrote: Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal: Can't find unit ibconnection used b

Re: RE : [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: [Nod], understood. Hit a slight snag here with trunk FPC + trunk Lazarus: Target OS: Solaris for SPARC Compiling sqldblaz.pas Compiling registersqldb.pas registersqldb.pas(58,3) Fatal: Can't find unit ibconnection used by registersqldb Fatal: Compilation aborted make[

Re: [fpc-pascal] How to write text to the console?

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 9:38, michael.vancann...@wisa.be wrote: > On Mon, 16 Jul 2012, Reinier Olislagers wrote: >> After having had help on the list I managed to write UTF8 text to the >> Windows Vista console using 2.6 >> However, my test program (see attachment) fails on trunk. >> This works in FPC 2.7.1:

[fpc-pascal] Re: How to write text to the console?

2012-07-16 Thread Reinier Olislagers
On 16-7-2012 9:38, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: > On Mon, 16 Jul 2012, Reinier Olislagers wrote: >> This works in FPC 2.7.1: >> WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),@s[1],length(s),bw,nil); >> ... but seems to be Windows-only. > > Indeed. > >> >> What am I missin

Re: [fpc-pascal] How to write text to the console?

2012-07-16 Thread michael . vancanneyt
On Mon, 16 Jul 2012, Reinier Olislagers wrote: Hope I got your attention with the subject ;) After having had help on the list I managed to write UTF8 text to the Windows Vista console using 2.6 However, my test program (see attachment) fails on trunk. See http://lazarus.freepascal.org/index

[fpc-pascal] How to write text to the console?

2012-07-16 Thread Reinier Olislagers
Hope I got your attention with the subject ;) After having had help on the list I managed to write UTF8 text to the Windows Vista console using 2.6 However, my test program (see attachment) fails on trunk. See http://lazarus.freepascal.org/index.php/topic,17548 for discussion (initially about oth