[fpc-pascal] I found FPC v0.2 source code :-)

2012-01-27 Thread Graeme Geldenhuys
Hi,

I stumbled upon the following. No idea where this FTP server lives,
but the link came from the Free Pascal documentation downloads page.

Anyway, while browsing there, I came across FPK (what is now known as
FPC) v0.2 source code release. 17 units in total and all console
output is German text. This release was way before I (and probably
most of you) even knew Free Pascal existed.  :-)

There is also a v0.9.0 and v0.9.1 release source code.

ftp://193.224.143.39/pub/fpc/attic/


Just thought I'd share what I found. Florian might appreciate seeing
just how far FPK / FPC has come.

-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] I found FPC v0.2 source code :-)

2012-01-27 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
> 
> Anyway, while browsing there, I came across FPK (what is now known as
> FPC) v0.2 source code release. 17 units in total and all console
> output is German text. This release was way before I (and probably
> most of you) even knew Free Pascal existed.  :-)
> 
> There is also a v0.9.0 and v0.9.1 release source code.
> 
> ftp://193.224.143.39/pub/fpc/attic/

It is ftp.freepascal.org, just a different VM used during FTP VM migration. 
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] fpdoc links and short description

2012-01-27 Thread Felipe Monteiro de Carvalho
Hello,

I havent seen an answer for this in the other thread and it is getting
too big. So, in fpdoc if we make a link like this:



It does not properly link the short description when listing elements
of a class, for example.

Is this a bug or should it work like this?

Is it possible to link the short description too? How?

thanks,
-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpdoc links and short description

2012-01-27 Thread michael . vancanneyt



On Fri, 27 Jan 2012, Felipe Monteiro de Carvalho wrote:


Hello,

I havent seen an answer for this in the other thread and it is getting
too big. So, in fpdoc if we make a link like this:



It does not properly link the short description when listing elements
of a class, for example.

Is this a bug or should it work like this?


Most likely a bug, please report it.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpdoc links and short description

2012-01-27 Thread Felipe Monteiro de Carvalho
On Fri, Jan 27, 2012 at 11:06 AM,   wrote:
> Most likely a bug, please report it.

umm, now I have rebuilt the docs and it obtained the short description
in the top-level view. I think I was using an old version of fpdoc ...

-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpdoc links and short description

2012-01-27 Thread Felipe Monteiro de Carvalho
Aha! I found the gotcha!

If I write the link like this:

  



  

Then it links properly (clicking makes it go to
TCustomRadioGroup.OnSelectionChanged) but it will not copy the short
description to the class overview. But it does that if I link like
this:

  



  

-- 
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
Hi list,

On ftp://ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/ there are a
lot of bootstrap compilers, but I miss a x86 Windows bootstrap compiler.

Would it be possible to upload one, or can I use the 2.4.2 compiler to
compile FPC 2.6.x/2.7.x sources on Windows?

Thanks,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said:
> On ftp://ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/ there are a
> lot of bootstrap compilers, but I miss a x86 Windows bootstrap compiler.

It is the responsibility of the platform maintainers to upload that.

That being said, for windows it makes less sense than for other platforms,
since the release also contains (possibly updated) binutils.

> Would it be possible to upload one, or can I use the 2.4.2 compiler to
> compile FPC 2.6.x/2.7.x sources on Windows?
>
It will probably work atm, but can stop to fail at any moment, so in general
I immediately update the bootstrap compiler if I notice it is not the
recommended version. Small effort, and avoids some confusion when it stops
working.

Anyway, since I had a win32 2.6.0 install on this system I zipped and
uploaded the exe.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
On 27-1-2012 13:01, Marco van de Voort wrote:
> In our previous episode, Reinier Olislagers said:
>> On ftp://ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/ there are a
>> lot of bootstrap compilers, but I miss a x86 Windows bootstrap compiler.
> 
> It is the responsibility of the platform maintainers to upload that.
> 
> That being said, for windows it makes less sense than for other platforms,
> since the release also contains (possibly updated) binutils.
Ok. I'm wondering whether the 2.6 release version gives the same
binutils as the ones available at
http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32/...


> Anyway, since I had a win32 2.6.0 install on this system I zipped and
> uploaded the exe.

Thanks,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said:
> > It is the responsibility of the platform maintainers to upload that.
> > 
> > That being said, for windows it makes less sense than for other platforms,
> > since the release also contains (possibly updated) binutils.
> Ok. I'm wondering whether the 2.6 release version gives the same
> binutils as the ones available at
> http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32/...

_Probably_ the same. But the ones from 2.6.0 are the _guaranteed_ working
ones.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
On 27-1-2012 13:22, Marco van de Voort wrote:
> In our previous episode, Reinier Olislagers said:
>>> It is the responsibility of the platform maintainers to upload that.
>>>
>>> That being said, for windows it makes less sense than for other platforms,
>>> since the release also contains (possibly updated) binutils.
>> Ok. I'm wondering whether the 2.6 release version gives the same
>> binutils as the ones available at
>> http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32/...
> 
> _Probably_ the same. But the ones from 2.6.0 are the _guaranteed_ working
> ones.

Bedankt Marco,

That's what I suspected. So when building a Win32 system from scratch,
I'd have to either extract the files from the installer or perhaps get
them from a stable branch like:
http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_6/install/binw32/

Facepalm - could have saved you the trouble of typing I knew this...
Just need more coffee I guess

Thanks again,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said:
> >> binutils as the ones available at
> >> http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw32/...
> > 
> > _Probably_ the same. But the ones from 2.6.0 are the _guaranteed_ working
> > ones.
> 
> 
> That's what I suspected. So when building a Win32 system from scratch,
> I'd have to either extract the files from the installer or perhaps get
> them from a stable branch like:
> http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_6/install/binw32/

No, tags/release_2_6_0 would then be the one. What is currently already in
fixed could theoretically already have been changed for 2.6.2

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
On 27-1-2012 13:33, Marco van de Voort wrote:
> In our previous episode, Reinier Olislagers said:
>> That's what I suspected. So when building a Win32 system from scratch,
>> I'd have to either extract the files from the installer or perhaps get
>> them from a stable branch like:
>> http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_6/install/binw32/
> 
> No, tags/release_2_6_0 would then be the one. What is currently already in
> fixed could theoretically already have been changed for 2.6.2
> 
Thanks, Marco; I thought 2.6.1 fixes would be stability improvements to
2.6.

Changing my SVN downloader as we speak...

Regards,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said:
> > 
> > No, tags/release_2_6_0 would then be the one. What is currently already in
> > fixed could theoretically already have been changed for 2.6.2
> > 
> Thanks, Marco; I thought 2.6.1 fixes would be stability improvements to
> 2.6.

True. But bootstrapping is attuned to the situation of the last release
only. And only the last release.
 
Note that I don't expect that many problems, since the mutation rate in this
field is very low (and even more so on Windows where there is also the
internal linker). 

But, again, the only guaranteed bootstrap options is the last release. 
Trying to cut corners here, can lead to trouble in communicating over
problems (both build problems as bugs), so I suggest to follow this as much
as possible.

One can try to cut corners, but that will only end up having to install the
release anyway at the first hickup.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Vincent Snijders
Op 27 januari 2012 14:00 heeft Marco van de Voort 
het volgende geschreven:
> One can try to cut corners, but that will only end up having to install the
> release anyway at the first hickup.

I'd expect the utils in fpcbuild/trunk to be able to build fpc/trunk
better than the release ones, otherwise they should not be committed
to fpcbuild/trunk.

Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Reinier Olislagers
On 27-1-2012 14:00, Marco van de Voort wrote:
> In our previous episode, Reinier Olislagers said:
>>>
>>> No, tags/release_2_6_0 would then be the one. What is currently already in
>>> fixed could theoretically already have been changed for 2.6.2
>>>
>> Thanks, Marco; I thought 2.6.1 fixes would be stability improvements to
>> 2.6.
> 
> True. But bootstrapping is attuned to the situation of the last release
> only. And only the last release.

> One can try to cut corners, but that will only end up having to install the
> release anyway at the first hickup.
> 
Ok, I'll just let my program do the hard work... without cutting corners ;)


https://bitbucket.org/reiniero/fpcup

Thanks,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Marco van de Voort
In our previous episode, Vincent Snijders said:
> > One can try to cut corners, but that will only end up having to install the
> > release anyway at the first hickup.
> 
> I'd expect the utils in fpcbuild/trunk to be able to build fpc/trunk
> better than the release ones, otherwise they should not be committed
> to fpcbuild/trunk.

Sometimes binutils are committed to trunk, but not merged back for testing
purposes. 

Moreover this hasn't already been the case in the past. Prior to 2.4.x, not
everything was merged through trunk, this was particularly the case for
release related stuff, so fixes could easily contain more recent binutils. 

This improved during the 2.2.x releasecycle, and starting with the 2.4.0
fixes branch everything was done through trunk.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Request for Win32 bootstrap compiler on ftp.freepascal.org/

2012-01-27 Thread Tomas Hajny
On Fri, January 27, 2012 14:10, Vincent Snijders wrote:
> Op 27 januari 2012 14:00 heeft Marco van de Voort 
> het volgende geschreven:
>> One can try to cut corners, but that will only end up having to install
>> the
>> release anyway at the first hickup.
>
> I'd expect the utils in fpcbuild/trunk to be able to build fpc/trunk
> better than the release ones, otherwise they should not be committed
> to fpcbuild/trunk.

I believe that the original discussion was about bootstrapping. Binutils
committed to trunk may not be tested completely for all scenarios
(similarly to everything else within trunk). New binutils may e.g. be
necessary for some new compiler feature (e.g. for assembling for a new CPU
generation not supported by the previous release if the trunk compiler
contains new support for this new CPU generation), but the released
binutils should be those guaranteed to compile trunk.

Tomas


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Class helpers and properties

2012-01-27 Thread Mark Morgan Lloyd

If a class has a public reader property like this:

TLexemeList= class(TObject)
protected
  fValue: TPrimaevalValue;
public
  property Value: TPrimaevalValue read fValue;
...

is there a way of allowing a class helper to augment this with a 
protected writer property? My attempt as below messed up the reader:


TLLEvaluator = class helper for TLexemeList
private
  procedure SetValue(v: TPrimaevalValue);
protected
  property Value: TPrimaevalValue write SetValue;
...

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Class helpers and properties

2012-01-27 Thread Sven Barth

On 27.01.2012 22:46, Mark Morgan Lloyd wrote:

If a class has a public reader property like this:

TLexemeList= class(TObject)
protected
fValue: TPrimaevalValue;
public
property Value: TPrimaevalValue read fValue;
...

is there a way of allowing a class helper to augment this with a
protected writer property? My attempt as below messed up the reader:

TLLEvaluator = class helper for TLexemeList
private
procedure SetValue(v: TPrimaevalValue);
protected
property Value: TPrimaevalValue write SetValue;
...



In your exact example fValue is protected so the following should work:

property Value: TPrimaevalValue read fValue write SetValue;

Another possibility (for non protected properties):

property Value: TPrimaevalValue read GetValue write SetValue;

...

function TLLEvaluator.GetValue: TPrimaevalValue;
begin
  Result := inherited Value;
end;

Other possibilities don't exist, as a helper's declaration will hide the 
declaration of the extended class (exceptions are methods with 
"overload" defined).


Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Class helpers and properties

2012-01-27 Thread Mark Morgan Lloyd

Sven Barth wrote:

On 27.01.2012 22:46, Mark Morgan Lloyd wrote:

If a class has a public reader property like this:

TLexemeList= class(TObject)
protected
fValue: TPrimaevalValue;
public
property Value: TPrimaevalValue read fValue;
...


Note that below is in a different unit.


is there a way of allowing a class helper to augment this with a
protected writer property? My attempt as below messed up the reader:

TLLEvaluator = class helper for TLexemeList
private
procedure SetValue(v: TPrimaevalValue);
protected
property Value: TPrimaevalValue write SetValue;
...



In your exact example fValue is protected so the following should work:

property Value: TPrimaevalValue read fValue write SetValue;


That didn't work since once we're in the helper it can't see fValue 
since it's only visible in the original unit.


Obviously code in the helper can simply call SetValue(), but I thought 
it worth raising in case I was missing something obvious.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal