[fpc-devel] InstantObjects

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sun Feb 27 16:35:40 CET 2005

On Sun, 27 Feb 2005, Uberto Barbini wrote:

> I almost finished the porting of the core part of IO to fpc.

I am *very* interested in seeing this working :)

> I added bugs for the (few) function I had to rewrite or modify passing from 
> Delphi to fpc.
> Anyway I'm still in trouble with streams.
> IO use descendants of TRead and TWrite like files.

What is TRead and TWrite ?

> It goes back when an error rises and it needs reading/writing block of binary 
> data.
 > Someone could point me the best way to add similar behavior over fpc TRead and 
> TWrite?
> It could be added to the "driver"?

Could you explain this ?

> Another problem that could arise is that the same data could be saved and 
> restore differently between fpc and delphi. In this case it'd be not possible 
> to share config files. Annoying but not dramatic.

You should write using text files only if you need this. 

There is no binary compatibility when writing data from memory to file.
Maybe if you use packed records and packed arrays, but by default alignment is 
different. I am also not sure about floating point values...


More information about the fpc-devel mailing list