Suppose I have
unit mytest;
interface
const MY_VALUE = 1; MY_INT_VALUE: integer = 1;
implementationend.
and second unit
unit mytest2;
interface
uses mytest;
const // this is legal MY_VALUE = mytest.MY_VALUE;
// this causes illegal expression // MY_INT_VALUE = mytest.MY_INT_VALUE; // MY_INT_VALUE : integer = mytest.MY_INT_VALUE;
implementationend.Is there workaround to redeclare typed constant in other unit so that I don't need to duplicate code? Thanks
Zamrony P. Juharahttps://juhara.com
