VFP allows those data types for the AS clause in LOCAL declarations (even if only used by intellisense and ignored at runtime) that are currently not allowed in X#:
LOCAL n AS Integer
LOCAL n AS Numeric
LOCAL n AS Number
It also allows "Double", "Float" and "Currency", but those we do support, albeit strongly typing the local.
"Integer" (for intellisense) refers to "our" INT (32 bits in VFP), while "Numeric" and "Number" are synonyms and both refer to any numeric type (int, float, currency).
In order to allow existing VFP code to compile, we need to add support for the 3 keywords above. Maybe we can map "Integer" to INT, but I think "Numeric" and "Number" need to become synonyms for USUAL. A small possible complexity is that System.Number is a (INTERNAL) system type defined in mscorlib.
VFP allows those data types for the AS clause in LOCAL declarations (even if only used by intellisense and ignored at runtime) that are currently not allowed in X#:
It also allows "Double", "Float" and "Currency", but those we do support, albeit strongly typing the local.
"Integer" (for intellisense) refers to "our" INT (32 bits in VFP), while "Numeric" and "Number" are synonyms and both refer to any numeric type (int, float, currency).
In order to allow existing VFP code to compile, we need to add support for the 3 keywords above. Maybe we can map "Integer" to INT, but I think "Numeric" and "Number" need to become synonyms for USUAL. A small possible complexity is that System.Number is a (INTERNAL) system type defined in mscorlib.