If I have a declaration in an attribute like this
If I have a declaration in an attribute like this
TestAttr (const aString: string)
I can do this:
const
str1 = '123';
and then
[Test (str1)]
but if I declare the const like this:
const
str1: string = '123';
the compiler complains that constant expression is required.
Shouldn't I be able to use the second form?
Thanks
TestAttr (const aString: string)
I can do this:
const
str1 = '123';
and then
[Test (str1)]
but if I declare the const like this:
const
str1: string = '123';
the compiler complains that constant expression is required.
Shouldn't I be able to use the second form?
Thanks
const
ReplyDeletePedantic = Boolean(True);
Lars Fosdal It's official terminology. We may as well use it, for the avoidance of doubt. Using official terminology makes communication better.
ReplyDeleteI have no further true constants to declare.
ReplyDelete