Ticket #18 (new defect)

Opened 1 year ago

Last modified 5 months ago

can't handle forward references in RemoteInterface classes

Reported by: warner Assigned to:
Priority: major Milestone: undecided
Component: unknown Version: 0.1.5
Keywords: Cc:

Description (Last modified by warner)

At the moment, the RemoteInterface metaclass mechanism fully parses the RemoteInterface specification before the class itself is defined. This makes it impossible to have methods which e.g. return instances of the same class (think graph-traversal interfaces: A.get_children() returns more instances of A). Likewise, it is impossible to have two classes mutually reference each other.

To fix this, the parsing of the methods inside the RemoteInterface should be put off as long as possible. The first time that someone uses a RemoteInterface (to obtain a schema or enumerate the methods) should trigger the parsing.

Change History

07/31/08 10:06:36 changed by warner

  • description changed.

07/31/08 10:06:58 changed by warner

  • description changed.