Ticket #8 (closed enhancement: fixed)

Opened 11 months ago

Last modified 11 months ago

Separation of indexing and field access

Reported by: JarrettBillingsley Assigned to: JarrettBillingsley
Priority: major Milestone: MiniD 2
Component: Language Keywords:
Cc:

Description

Separation of indexing (a["x"]) and field access (a.x) into two separate operations for speed and more granularity when writing metamethods. Field access uses the opField and opFieldAssign metamethods instead of opIndex and opIndexAssign. For tables, there is only indexing, and field access uses opIndex and opIndexAssign.

To go with that, new syntax for accessing fields and methods with dynamically-generated names: a.(someExpression) and a.(someExpression)(params).

Change History

01/14/08 11:45:22 changed by JarrettBillingsley

  • status changed from new to closed.
  • resolution set to fixed.

01/15/08 21:21:42 changed by JarrettBillingsley

  • component changed from component1 to Language.