Skip to content

[VFP] Numeric data types in the VFP dialect #1993

Description

@cpyrgas

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.

Metadata

Metadata

Assignees

Labels

FoxProFoxPro dialect

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions