It would be nice to add attributes to serialize objects. There is a problem if the CML coincides with the reserved words.
<product> <unit>шт</unit> </product>
TProduct = class unit: string; // <--- error, reserved word end;
TProduct = class [OName('Unit')] UnitName: string; // <--- translate
[OIgnore] Code: integer; // no serialization end;
You seem to have CSS turned off. Please don't fill out this field.
Anonymous
That's a good idea, I'll check the possibilities.
Sorry I didn't go into it earlier. For now, I suggest you take use of the '&' syntax to allow keywords in class and record definition.
TProduct = class &unit: string; // <--- OK! end;
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
It would be nice to add attributes to serialize objects. There is a problem if the CML coincides with the reserved words.
<product>
<unit>шт</unit>
</product>
TProduct = class
unit: string; // <--- error, reserved word
end;
TProduct = class
[OName('Unit')]
UnitName: string; // <--- translate
[OIgnore]
Code: integer; // no serialization
end;
That's a good idea, I'll check the possibilities.
Sorry I didn't go into it earlier. For now, I suggest you take use of the '&' syntax to allow keywords in class and record definition.
TProduct = class
&unit: string; // <--- OK!
end;