Re: [fpc-pascal] Setting bit in array of byte

2005-10-01 Thread Koenraad Lelong
Michalis Kamburelis wrote: Koenraad Lelong wrote: ... "array of byte" is a dynamic array. It's a pointer, to data and to some internal fields. "^array of byte" is a pointer to a pointer to data. You don't want this. What you probably want is something like type TByteArray = array[0..Max

Re: [fpc-pascal] Setting bit in array of byte

2005-10-01 Thread Michalis Kamburelis
Koenraad Lelong wrote: Hi, I have following code (almost literally translated from C) : //-- // Bit utility to read and write a bit in the buffer 'buf'. // // 'op'- operation (1) to set and (0) to read // 'state' - set