Hi all,
I last used Pascal in school a long long time ago. Just discovered Free Pascal.
I have the following:
type
TNonceBytes = array[1..8] of byte;
TNonce = class
private
pn: TNonceBytes;
filled: boolean;
public
constructor create; overload;
On Tue, 19 Jan 2016, Pierce Ng wrote:
Hi all,
I last used Pascal in school a long long time ago. Just discovered Free Pascal.
I have the following:
type
TNonceBytes = array[1..8] of byte;
TNonce = class
private
pn: TNonceBytes;
filled: boolean;
public
Am 20.01.2016 10:03 schrieb "Pierce Ng" :
>
> Hi all,
>
> I last used Pascal in school a long long time ago. Just discovered Free
Pascal.
>
> I have the following:
>
> type
> TNonceBytes = array[1..8] of byte;
>
> TNonce = class
> private
> pn: TNonceBytes;
> filled:
I came across this trying to track down a bug in a linux program where
two separate instances of TRegistry were being used to both read and
write data to the registry. Depending on the order in which operations
were done, writes were being lost and not turning up in the XML file.
The outcome is
Is there a performance difference between using bitmask values and sets?
For example:
Option #1:
=
const
FLAG_A = 1; // 1 shl 0
FLAG_B = 2; // 1 shl 1
FLAG_C = 4; // 1 shl 2
var
Flags: Integer;
[..]
Flags:= FLAG_A or FLAG_C;
if FLAG_A and Flags <>
Am 20.01.2016 19:26 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> Is there a performance difference between using bitmask values and sets?
For sets with <= 32 elements it should behave the same if I remember
correctly (I don't know right now though whether it would be 64 elemen