Ticket #14 (closed enhancement: fixed)

Opened 11 months ago

Last modified 11 months ago

Intercept method-not-found with a metamethod

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

Description

When you attempt to call a method on an object and the method doesn't exist, call the opMethod metamethod that will allow you to do cool stuff, like RPC, mocking, etc.

opMethod takes the name of the method and a vararg of all the arguments that were passed. this is the object on which the method was called.

Change History

01/14/08 11:55:32 changed by JarrettBillingsley

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

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

  • component changed from component1 to Language.