Re: [fpc-pascal] fpwrite buffers issues

2007-10-12 Thread Vincent Snijders
ik schreef: Hi Sorry for the delay in responding Some remarks at first glance: for m := 0 to readcount do Should be: for m := 0 to readcount-1 do It would better to use either cshort or smallint. I think fpread and fpwrite expect sizes in bytes and not in cshorts (or is a csh

Re: [fpc-pascal] fpwrite buffers issues

2007-10-12 Thread ik
Hi Sorry for the delay in responding On 10/8/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: > ik schreef: > > > Hello List, > > > > > > > Then I tried to do the following code, that continue to write the > > buffer content until nothing more to write, but it reads wrong data: > > > > start_count

[fpc-pascal] class declaration questions

2007-10-12 Thread Marc Santhoff
Hi, the reference manual is not explicitly clear in describing class declarations. Is it true for classes as for objects that the first block of components after the class header are visible as if declared public? E.g. TAnyClass = class fField:anytype; end; would make fField visible "pu

Re: [fpc-pascal] Specifying a Interface type via $Interfaces

2007-10-12 Thread Dean Zobec
2007/10/11, Graeme Geldenhuys <[EMAIL PROTECTED]>: > On 11/10/2007, Dean Zobec <[EMAIL PROTECTED]> wrote: > > > interface types. Could somebody please explain the difference. And > > > why would I use one over the other? > > Corba interfaces are not reference counted as they don't descend from >

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Felipe Monteiro de Carvalho
On 10/12/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > Does object pascal allow a class declaration marked as an abstract > class? Like in java for making sure the class can never be instantiated > itself, only it's descendants can be? The compiler will issue a warning if you instantiate a class

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Vincent Snijders
Marc Santhoff schreef: Hi, the reference manual is not explicitly clear in describing class declarations. Is it true for classes as for objects that the first block of components after the class header are visible as if declared public? E.g. TAnyClass = class fField:anytype; end; woul

Re: [fpc-pascal] Specifying a Interface type via $Interfaces

2007-10-12 Thread Dean Zobec
2007/10/11, Graeme Geldenhuys <[EMAIL PROTECTED]>: > On 11/10/2007, Dean Zobec <[EMAIL PROTECTED]> wrote: > > > interface types. Could somebody please explain the difference. And > > > why would I use one over the other? > > Corba interfaces are not reference counted as they don't descend from >

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Mattias Gaertner
On Fri, 12 Oct 2007 22:58:46 +0200 Vincent Snijders <[EMAIL PROTECTED]> wrote: > Marc Santhoff schreef: > > Hi, > > > > the reference manual is not explicitly clear in describing class > > declarations. Is it true for classes as for objects that the first > > block of components after the class h

Re: [fpc-pascal] Specifying a Interface type via $Interfaces

2007-10-12 Thread Joao Morais
Dean Zobec wrote: As for reference counting - that just means that as soon as the reference count for an Interfaces reaches zero, it gets automatically freed? yes, though you have to pay much attention to memory leaks and possible problems when dealing a lot with interfaces, memory leaks should

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Joao Morais
Felipe Monteiro de Carvalho wrote: On 10/12/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: Does object pascal allow a class declaration marked as an abstract class? Like in java for making sure the class can never be instantiated itself, only it's descendants can be? The compiler will issue a wa

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Joao Morais
Vincent Snijders wrote: Marc Santhoff schreef: Hi, the reference manual is not explicitly clear in describing class declarations. Is it true for classes as for objects that the first block of components after the class header are visible as if declared public? E.g. TAnyClass = class fFiel

Re: [fpc-pascal] fpwrite buffers issues

2007-10-12 Thread ik
On 10/12/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: > ik schreef: > > Hi Sorry for the delay in responding > > > > Some remarks at first glance: > for m := 0 to readcount do > Should be: > for m := 0 to readcount-1 do > > It would better to use either cshort or smallint. Thank

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Mattias Gaertner
On Fri, 12 Oct 2007 18:41:19 -0300 Joao Morais <[EMAIL PROTECTED]> wrote: > Felipe Monteiro de Carvalho wrote: > > On 10/12/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > >> Does object pascal allow a class declaration marked as an abstract > >> class? Like in java for making sure the class can ne

Re: [fpc-pascal] class declaration questions

2007-10-12 Thread Marc Santhoff
Am Samstag, den 13.10.2007, 00:50 +0200 schrieb Mattias Gaertner: > On Fri, 12 Oct 2007 18:41:19 -0300 > Joao Morais <[EMAIL PROTECTED]> wrote: > > > Felipe Monteiro de Carvalho wrote: > > > On 10/12/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > >> Does object pascal allow a class declaration m