Re: [fpc-devel] building pdf documentation

2009-09-10 Thread Graeme Geldenhuys
Michael Van Canneyt het geskryf: I don't understand why you have so many problems. I did a standard ubuntu install, installed all of latex (there is a metapackage), and the docs compiled without a single glitch. I couldn't find any 'latex' metapackage. Anyway, I google'd the issue which I

Re: [fpc-devel] building pdf documentation

2009-09-10 Thread Michael Van Canneyt
On Thu, 10 Sep 2009, Graeme Geldenhuys wrote: Michael Van Canneyt het geskryf: I don't understand why you have so many problems. I did a standard ubuntu install, installed all of latex (there is a metapackage), and the docs compiled without a single glitch. I couldn't find any 'latex'

Re: [fpc-devel] Is lnet compilation working?

2009-09-10 Thread Aleš Katona
Fixed, thanks for reporting. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] comparing methods

2009-09-10 Thread Mattias Gärtner
Hi, Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? For example: a:=TMyClass.Create; b:=TMyClass.Create; if @a.test = @b.test then writeln('the same method'); This results in strange behaviors, when using the following code

Re: [fpc-devel] comparing methods

2009-09-10 Thread Michael Schnell
Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ = Address of, in this case code address, the code is the same for all instances of a class). -Michael

Re: [fpc-devel] comparing methods

2009-09-10 Thread Thaddy
Mattias Gärtner wrote: Hi, Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? For example: a:=TMyClass.Create; b:=TMyClass.Create; if @a.test = @b.test then writeln('the same method'); This results in strange behaviors, when using

Re: [fpc-devel] comparing methods

2009-09-10 Thread Mattias Gärtner
Zitat von Michael Schnell mschn...@lumino.de: Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ = Address of, in this case code address, the code is the same for all instances of a

Re: [fpc-devel] comparing methods

2009-09-10 Thread Jonas Maebe
On 10 Sep 2009, at 14:01, Mattias Gärtner wrote: Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ = Address of, in this case code address, the code is the same for all

Re: [fpc-devel] comparing methods

2009-09-10 Thread Thaddy
Mattias Gärtner wrote: Zitat von Michael Schnell mschn...@lumino.de: Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ = Address of, in this case code address, the code is the

Re: [fpc-devel] comparing methods

2009-09-10 Thread Vincent Snijders
Jonas Maebe schreef: On 10 Sep 2009, at 14:01, Mattias Gärtner wrote: Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ = Address of, in this case code address, the code is the

[fpc-devel] documentation: chart.[ps|pdf]

2009-09-10 Thread Graeme Geldenhuys
Hi, I downloaded a while back the FPC 2.2.0 and 2.2.4 documentation in PDF and PS format. In both cases the chart.* files were incorrect (I believe). The filename implies a chart, so I gathered that it is a class chart / hierarchy of some kind. But when I view it, it is just a listing of the

Re: [fpc-devel] documentation: chart.[ps|pdf]

2009-09-10 Thread Michael Van Canneyt
On Thu, 10 Sep 2009, Graeme Geldenhuys wrote: Hi, I downloaded a while back the FPC 2.2.0 and 2.2.4 documentation in PDF and PS format. In both cases the chart.* files were incorrect (I believe). The filename implies a chart, so I gathered that it is a class chart / hierarchy of some kind.

Re: [fpc-devel] documentation: chart.[ps|pdf]

2009-09-10 Thread Graeme Geldenhuys
Michael Van Canneyt het geskryf: If you have a suggestion, I'll be glad to change the name. So the name and content is correct? Umm, so how did you get to the name chart? :-) When I opened that file, I expected the class hierarchy chart - you know, like the one Borland gave with D7 K3. Umm,

Re: [fpc-devel] documentation: chart.[ps|pdf]

2009-09-10 Thread Vincent Snijders
Graeme Geldenhuys schreef: Michael Van Canneyt het geskryf: If you have a suggestion, I'll be glad to change the name. So the name and content is correct? Umm, so how did you get to the name chart? :-) When I opened that file, I expected the class hierarchy chart - you know, like the one

Re: [fpc-devel] comparing methods

2009-09-10 Thread Mattias Gärtner
Zitat von Thaddy tha...@thaddy.com: Mattias Gärtner wrote: Zitat von Michael Schnell mschn...@lumino.de: Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ = Address of, in this

Re: [fpc-devel] comparing methods

2009-09-10 Thread Mattias Gärtner
Zitat von Jonas Maebe jonas.ma...@elis.ugent.be: On 10 Sep 2009, at 14:01, Mattias Gärtner wrote: Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ = Address of, in this case

Re: [fpc-devel] documentation: chart.[ps|pdf]

2009-09-10 Thread Graeme Geldenhuys
Vincent Snijders het geskryf: It is the compiler switches quick reference chart. Or maybe better compiler switches quick reference card. Ah, like the ones in the Dummies guide of ... books. :-) Then maybe quickref.xxx is a better name than chart.xxx - that's if we limit ourselves to 8.3 names

Re: [fpc-devel] document header mistakes

2009-09-10 Thread Michael Van Canneyt
On Thu, 10 Sep 2009, Graeme Geldenhuys wrote: Hi Michael, I'm not picking on you, I promise! :-) I'm just doing my bit evaluating the upcoming FPC 2.4 release - code docs. Too late, the intercontinental ballistic missile has left ---[ ref.xxx ]--- 1) In the current

Re: [fpc-devel] comparing methods

2009-09-10 Thread Mattias Gärtner
Zitat von Vincent Snijders vsnijd...@vodafonevast.nl: Jonas Maebe schreef: On 10 Sep 2009, at 14:01, Mattias Gärtner wrote: Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ =

Re: [fpc-devel] comparing methods

2009-09-10 Thread Desmond Coertzen
I have done some horrible code where I needed to know the following: If TSomeProc = procedure(), then is it easy to determine or set entry vector of ThatProc: TSomeProc by stating ThatProc := @ProcWhereTheCodeLives_InTheCodeSegment; It gets more difficult when you work with TSomeClassProc =

Re: [fpc-devel] document header mistakes

2009-09-10 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: 2) Also the section number is a bit odd. 0.1 - but that's not really a biggy. Maybe the section number could be left out like was done in the ref.xxx document. It's all about consistency. ;-) I'll have a look at this. Note that the

Re: [fpc-devel] comparing methods

2009-09-10 Thread Peter Vreman
On Thu, 10 Sep 2009 14:25:26 +, Desmond Coertzen patrolliekapt...@gmail.com wrote: I have done some horrible code where I needed to know the following: If TSomeProc = procedure(), then is it easy to determine or set entry vector of ThatProc: TSomeProc by stating ThatProc :=

Re: [fpc-devel] comparing methods

2009-09-10 Thread Desmond Coertzen
Thank you Peter. TMethod would have been handy if i knew about this back then. For delphi compatibility, I had to do this: program methodpointer; uses Classes, sysutils; type TMyEvent = procedure of object; TMyClass = class(TObject) procedure MyMethod; end; { TMyClass }

Re: [fpc-devel] comparing methods

2009-09-10 Thread Florian Klaempfl
Ivo Steinmann schrieb: 1. Using =nil or Assigned should result in the same. Afaik not, this was one of the reasons for assigned. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] comparing methods

2009-09-10 Thread Martin
Mattias Gärtner wrote: Zitat von Michael Schnell mschn...@lumino.de: Mattias Gärtner wrote: Can someone explain why in mode objfpc comparing methods only compares the address, but not the instance? Seems perfectly logical to me (@ = Address of, in this case code address, the code is the same

Re: [fpc-devel] comparing methods

2009-09-10 Thread Mattias Gaertner
On Thu, 10 Sep 2009 17:52:44 +0200 Florian Klaempfl flor...@freepascal.org wrote: Ivo Steinmann schrieb: 1. Using =nil or Assigned should result in the same. Afaik not, this was one of the reasons for assigned. Are there any other reasons for assigned? Mattias

Re: [fpc-devel] comparing methods

2009-09-10 Thread Florian Klaempfl
Mattias Gaertner schrieb: On Thu, 10 Sep 2009 17:52:44 +0200 Florian Klaempfl flor...@freepascal.org wrote: Ivo Steinmann schrieb: 1. Using =nil or Assigned should result in the same. Afaik not, this was one of the reasons for assigned. Are there any other reasons for assigned?

Re: [fpc-devel] comparing methods

2009-09-10 Thread Michael Van Canneyt
On Thu, 10 Sep 2009, Florian Klaempfl wrote: Mattias Gaertner schrieb: On Thu, 10 Sep 2009 17:52:44 +0200 Florian Klaempfl flor...@freepascal.org wrote: Ivo Steinmann schrieb: 1. Using =nil or Assigned should result in the same. Afaik not, this was one of the reasons for assigned. Are

Re: [fpc-devel] comparing methods

2009-09-10 Thread Ivo Steinmann
Florian Klaempfl schrieb: Ivo Steinmann schrieb: 1. Using =nil or Assigned should result in the same. Afaik not, this was one of the reasons for assigned. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] comparing methods

2009-09-10 Thread Sergei Gorelkin
Michael Van Canneyt wrote: On Thu, 10 Sep 2009, Florian Klaempfl wrote: Mattias Gaertner schrieb: On Thu, 10 Sep 2009 17:52:44 +0200 Florian Klaempfl flor...@freepascal.org wrote: Ivo Steinmann schrieb: 1. Using =nil or Assigned should result in the same. Afaik not, this was one of the