Hello,
What does Const mean in this c structure ? and what is the delphi equivalent
?
I think const struct just means it can't be modified... is that correct ?
Struct {
Type1 Field1;
Const struct Type2 *Field2;
} Structure1;
So my guess would be:
Type
Structure1 = record
Field1 : Type1;
Field2 : ^Type2;
end;
Delphi doesn't have constant fields in structures/records ?
Why would someone make the field const in C, is it really that important ?
I am guessing it's just a safety precaution during coding... ?
Bye,
Skybuck
What does Const mean in this c structure ? and what is the delphi equivalent
?
I think const struct just means it can't be modified... is that correct ?
Struct {
Type1 Field1;
Const struct Type2 *Field2;
} Structure1;
So my guess would be:
Type
Structure1 = record
Field1 : Type1;
Field2 : ^Type2;
end;
Delphi doesn't have constant fields in structures/records ?
Why would someone make the field const in C, is it really that important ?
I am guessing it's just a safety precaution during coding... ?
Bye,
Skybuck
Comment