[fpc-devel] Major problem with Move and Array of Int64

Martin Schreiber mse00000 at gmail.com
Fri Sep 23 15:57:10 CEST 2011


On Friday 23 September 2011 16.32:21 Hans-Peter Diettrich wrote:
> >> So TBlobField.Value probably should be changed to array of byte and
> >> there should be a TField.AsByteArray property?
> > 
> > Yes, Certainly.  Or better even Stream objects.
> 
> Why not use (or introduce) an TBlob type, matching the need of DB users
> and other users, which currently use strings for storing raw bytes. It
> must not be a really new type, just an alias for the suggested type for
> such content.
> 
String index is one-based, array of byte index is null-based and has no copy 
on write semantic, a TStream is not refcounted and must be destroyed in code 
if copied by TBlobField or is invalid if the TField instance is destroyed if 
not copied by TBlobField. Programs can not handle String, array of byte or 
TStream in the same way.

Martin



More information about the fpc-devel mailing list