Re: [fpc-devel] New language idea: Unified types(assignmentsize-compatible types).

2011-06-26 Thread Graeme Geldenhuys
On 21 June 2011 13:09, Hans-Peter Diettrich wrote: > > A LongWord will always have 32 bits, because it's a concrete type. Instead > Integer, Cardinal, Char, String or Real can vary with every compiler version > or target platform, because these are *generic* types. Um, I think you are mistaken.

Re: [fpc-devel] New language idea: Unified types(assignmentsize-compatible types).

2011-06-26 Thread Sven Barth
On 26.06.2011 09:49, Graeme Geldenhuys wrote: On 21 June 2011 13:09, Hans-Peter Diettrich wrote: A LongWord will always have 32 bits, because it's a concrete type. Instead Integer, Cardinal, Char, String or Real can vary with every compiler version or target platform, because these are *generi

Re: [fpc-devel] New language idea: Unified types(assignmentsize-compatible types).

2011-06-26 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: On 21 June 2011 13:09, Hans-Peter Diettrich wrote: A LongWord will always have 32 bits, because it's a concrete type. Instead Integer, Cardinal, Char, String or Real can vary with every compiler version or target platform, because these are *generic* types. Um, I t

Re: [fpc-devel] New language idea: Unified types(assignmentsize-compatible types).

2011-06-26 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > Um, I think you are mistaken. Integer is *always* 32-bits on either > 32-bit or 64-bit target platforms That's because FPC currently only supports LP64 and LLP64 systems. There are some systems (IIRC some AIX editions) that are ILP64 (iow in C

Re: [fpc-devel] New language idea: Unified types(assignmentsize-compatible types).

2011-06-26 Thread Graeme Geldenhuys
On 26 June 2011 14:03, Hans-Peter Diettrich wrote: >> Integer is *always* 32-bits on either >> 32-bit or 64-bit target platforms. > > It *happens* to have 32 bit there. On 16 bit platforms (TP, Delphi 1) it was > 16 bit. I'm not sure when Delphi changed that to 32 bit, perhaps not before > D3. The

Re: [fpc-devel] New language idea: Unified types(assignmentsize-compatible types).

2011-06-26 Thread Jonas Maebe
On 26 Jun 2011, at 13:35, Marco van de Voort wrote: > What FPC will do there is probably still undecided, since it will be a > dilemma between compatibility with the OS it is running on vs compatibility > with other FPC targets. I'm fairly sure we'd keep the definition the same as on other plat

Re: [fpc-devel] New language idea: Unified types(assignmentsize-compatible types).

2011-06-26 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > > What FPC will do there is probably still undecided, since it will be a > > dilemma between compatibility with the OS it is running on vs compatibility > > with other FPC targets. > > I'm fairly sure we'd keep the definition the same as on other platf

Re: [fpc-devel] New language idea: Unified types(assignmentsize-compatible types).

2011-06-26 Thread Paulo Costa
On 26/06/2011 13:03, Hans-Peter Diettrich wrote: It *happens* to have 32 bit there. On 16 bit platforms (TP, Delphi 1) it was 16 bit. I'm not sure when Delphi changed that to 32 bit, perhaps not before D3. The change was in D2. Delphi 2 was the first "32 bits" Delphi. Paulo Costa

Re: [fpc-devel] fpVectorial PDF Writer

2011-06-26 Thread Felipe Monteiro de Carvalho
Hello, If you are willing to work on it too, I can help you write a pdf exporter. It should be easy, you just have to take an example document plus the Adobe documentation. PDF is just text plus an eventual zip compression. The drawing itself is just plain PostScript which is also simple. -- F

Re: [fpc-devel] fpVectorial PDF Writer

2011-06-26 Thread Leonardo M . Ramé
- Original Message - > From: Felipe Monteiro de Carvalho > To: Leonardo M. Ramé ; FPC developers' list > > Cc: > Sent: Sunday, June 26, 2011 2:54 PM > Subject: Re: [fpc-devel] fpVectorial PDF Writer > > Hello, > > If you are willing to work on it too, I can help you write a pdf expor

Re: [fpc-devel] fpVectorial PDF Writer

2011-06-26 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: If you are willing to work on it too, I can help you write a pdf exporter. It should be easy, you just have to take an example document plus the Adobe documentation. PDF is just text plus an eventual zip compression. Be warned, the Adobe documentation is i

Re: [fpc-devel] divide bcd's

2011-06-26 Thread LacaK
To not forget, I have reported it also in bug tracker http://bugs.freepascal.org/view.php?id=19636 -Laco. Hi Joost, try attached patch. For me it works as expected. -Laco. Maybe someone else can. If not, I think we should rewrite the whole function. Joost. --