In the following piece of code :
type
TDoubleDWORD = record
L, H: Longint;
end;
function BitSelection(const Block: Integer; const A;
const ASize: Integer): Longint;
var
H, L: Longint;
begin
H := TDoubleDWORD(Block).H;
L := TDoubleDWORD(Block).L;
My Questions Are :
1) What is the type of parameter A ? 2) What does 'TDoubleDWORD(Block)' mean ? Is that some sort of constructor for the record TDoubleDWORD ? Sorry if the questions seem trivial but I'm pretty new to delphi and goo开发者_开发问答gle isn't much help.- Untyped / typeless parameters in Delphi
- Its a cast.
A
is an untyped parameter. Here is question about that with link to an article.
TDoubleDWORD(Block)
is a typecast to TDoubleDWORD
.
精彩评论