Table of Contents

5.6.2 Expression Evaluation

Note

This section describes the implementation of MS-VBAL §5.6.2 Expression Evaluation.

5.6.2.1 Evaluation to a data value

This section corresponds to MS-VBAL §5.6.2.1 Evaluation to a data value.

Note

Reserved. This section has no content yet.

5.6.2.2 Evaluation to a simple data value

Note

This section describes the implementation of MS-VBAL §5.6.2.2 Evaluation to a simple data value.

The default member of a class type can be implicitly invoked through let-coercion, yielding the data value of the object. See RD-VBAL §2.4.2.2.2 Default Member and RD-VBAL §5.5.1.2 Runtime semantics.

5.6.2.3 Default Member Recursion Limits

Note

This section describes the implementation of MS-VBAL §5.6.2.3 Default Member Recursion Limits.

When the default member also yields an object data type, the implicit invocation of a default member through let-coercion recurses as needed.

A Let to os, where the default member of os is a Property Get with no Property Let that returns an object (os = 5), assigns the default member of the object it returns, as MS-VBAL §5.4.3.8 specifies. MS-VBA refuses it at compile time (RD-VBAL §5.4.3.8 Targets of a class).

See RD-VBAL §2.4.2 Non-intrinsic Types.