[fpc-devel] A suggestion about streams

2006-06-30 Thread Sergei Gorelkin
Hello, Currently, TStream.Read and TStream.Write methods are abstract. This means that each and every descendant of TStream must override these methods with their implementation. FCL has many read-only or write-only TStream descendants, which override Read or Write methods just to indicate that

Re: [fpc-devel] A suggestion about streams

2006-06-30 Thread Michael Van Canneyt
On Fri, 30 Jun 2006, Sergei Gorelkin wrote: Hello, Currently, TStream.Read and TStream.Write methods are abstract. This means that each and every descendant of TStream must override these methods with their implementation. FCL has many read-only or write-only TStream descendants, which

Re[2]: [fpc-devel] A suggestion about streams

2006-06-30 Thread Sergei Gorelkin
On Friday, June 30, 2006, 6:46:48 PM, Michael Van Canneyt wrote: MVC There is a difference for the implementor of streams: MVC By keeping the method abstract, you FORCE the implementation of a method MVC in a descendent. MVC The compiler will warn you if you try to instantiate a class which has

Re[2]: [fpc-devel] A suggestion about streams

2006-06-30 Thread Michael Van Canneyt
On Fri, 30 Jun 2006, Sergei Gorelkin wrote: On Friday, June 30, 2006, 6:46:48 PM, Michael Van Canneyt wrote: MVC There is a difference for the implementor of streams: MVC By keeping the method abstract, you FORCE the implementation of a method MVC in a descendent. MVC The compiler will