DEFINE typing problem
Posted: Thu Jun 24, 2021 3:00 pm
Hi,
If DEFINE is typed as DWORD, then when it is placed into an array of objects, it is converted to type INT.
Sample (VO dialect):
Best regards,
Leonid
If DEFINE is typed as DWORD, then when it is placed into an array of objects, it is converted to type INT.
Sample (VO dialect):
Code: Select all
STATIC DEFINE DWORD_DEFINE := 0x00000001 AS DWORD
FUNCTION Start() AS VOID STRICT
LOCAL a AS OBJECT[]
a := <OBJECT>{ DWORD_DEFINE }
? a[1]:GetType():ToString() // displays System.Int32 instead System.UInt32
RETURN
Leonid