Welcome to PGD
If this is your first visit, be sure to check out the FAQ by clicking the link above. You have to register before you can post.
If you have recently signed up, please make sure you log in so that your activity is registered. This is required for automatic promotions to work and to ensure your account is not deleted during the registration process.
AthenaOfDelphi
Originally Posted by cronodragon You can always use out of range tricks: type parr = ^tarr; tarr = array[1..1] of Byte; var src: array of Byte; mask: parr; ... SetLength(src, 100); mask := @src[0]; // does it work with "mask := src;" ? maybe... for i := 1 to Length(src) do mask[i] := x; ... But I think that will overwrite memory space tthat's used?
Marmin^.Style
Forum Rules
Bookmarks