Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-25 Thread Michael Van Canneyt
On Mon, 25 May 2015, Géza Kovacs Géza wrote: Hi All! What is the faster and more efficient, using the TFileStream or the classical way ("file of byte", or "file") type with blockread/blockwrite and the other well-know procedures? What is the better, faster on large files? TFileStream offers

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-25 Thread Géza Kovacs Géza
Hi! Thx your answer. Can I use the "AssignFile" procedure from the SysUtils unit instead of the simple assign procedure from the System unit? What is the problem with the simple "assign"? I read from the Free Pascal Wiki: AssignFile (prevent the use of the older Assign procedure) - Assign a nam

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-25 Thread Michael Van Canneyt
On Mon, 25 May 2015, Géza Kovacs Géza wrote: Hi! Thx your answer. Can I use the "AssignFile" procedure from the SysUtils unit instead of the simple assign procedure from the System unit? What is the problem with the simple "assign"? I read from the Free Pascal Wiki: AssignFile (prevent the

Re: [fpc-pascal] How to instantiate a public type in a generic class

2015-05-25 Thread luciano de souza
Sven, I really thoght that I had replied your message, but now, I realize I didn't do it. Actually, the fact compiler does not support the sintax I proposed, it's not very severe. In stead of passing a subtype, I can firstly create a type from the subtype and using it in the specialization: TPe