Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-22 Thread Martin Schreiber
On Sunday 22 November 2015 20:32:47 Bo Berglund wrote: > On Sun, 22 Nov 2015 05:56:55 +0100, Martin Schreiber > > wrote: > >And I strongly suggest to drop CVS and to use git > >instead. ;-) > >There is even a git client GUI written in Free Pascal: >

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-22 Thread Anthony Walter
More ... // This works function TestIsAs2(Item: TObject): T; begin if Item is T then begin Exit(Item as T); end; Result := nil; end; Now before you say "of course" :) I find it interesting because is and as are operators, just like > greater than and < less than are operators. In

Re: [fpc-pascal] fppkg compiler upgrade

2015-11-22 Thread leledumbo
> 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.4. -- View this message in context:

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-22 Thread Anthony Walter
Sven, in the with regards to "of course", I think you have it reversed. Is and as were being used as a class in my test, not an object. All examples in {$mode delphi} if Form1.Components[I] is T then // does not compile in my test while if Form1.Components[I].Inheritsfrom(T) // did compile In

Re: [fpc-pascal] [fpc-announce] Feature announcement: Generic functions, procedures and methods

2015-11-22 Thread Travis Siegel
Who do I talk to about fpc 3.0.0-rc2 not compiling on a raspberry pi? I did reply to one email about an rc2 candidate, but got no reply, (and it turns out I didn't have the latest available version at the time anyhow) so the error changed, but it's still not compiling completely, though it

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-22 Thread leledumbo
> So basically just use it as a single factor (or statement) and you'll be fine until I've improved that. Roger that. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Feature-announcement-Generic-functions-procedures-and-methods-tp5723106p5723115.html Sent

Re: [fpc-pascal] [fpc-announce] Feature announcement: Generic functions, procedures and methods

2015-11-22 Thread Mark Morgan Lloyd
Travis Siegel wrote: Who do I talk to about fpc 3.0.0-rc2 not compiling on a raspberry pi? I did reply to one email about an rc2 candidate, but got no reply, (and it turns out I didn't have the latest available version at the time anyhow) so the error changed, but it's still not compiling

Re: [fpc-pascal] Updated FPC from svn but make does not work..

2015-11-22 Thread Bo Berglund
On Sun, 22 Nov 2015 05:56:55 +0100, Martin Schreiber wrote: >And I strongly suggest to drop CVS and to use git >instead. ;-) >There is even a git client GUI written in Free Pascal: >http://sourceforge.net/projects/mseuniverse/ > Not so easy, since the company version

Re: [fpc-pascal] Feature announcement: Generic functions, procedures and methods

2015-11-22 Thread Anthony Walter
Here are a few tests ... Test 1 works: function Swap(var A, B: T): T; var C: T; begin C := A; A := B; B := C; end; Example 1 usage: Swap(I, J); // J now holds I value, I value holds J Test 2 works but with notes: function Find: T; var I: Integer; begin for I := 0 to

[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] Feature announcement: Generic functions, procedures and methods

2015-11-22 Thread Sven Barth
On 22.11.2015 21:29, Anthony Walter wrote: Test 2 works but with notes: function Find: T; var I: Integer; begin for I := 0 to Form1.ComponentCount - 1 do if Form1.Components[I].InheritsFrom(T) then Exit(T(Form1.Components[I])); Result := nil; end; Example 2 usage: Find.Brush.Color :=