Wiki

Ticket #26 (new enhancement)

Opened 16 years ago

Recognize extension methods in dynamic binding

Reported by: Chuck Owned by:
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: dynamic extend Cc:

Description

Dynamic binding uses CLR reflection which does not incorporate extension methods (whether from Cobra in .NET 2.0+ or C# in .NET 3.5+). However, it's not unreasonable that if a developer extends, for example, System.Object, that he be able to invoke extension methods when the type is dynamic.

extend Object

	def aoeu as int
		return 4

class X

	def main is shared
		obj = Object() to dynamic
		assert obj.aoeu == 4  # fails to find method
Note: See TracTickets for help on using tickets.