Ticket #210 (new defect)

Opened 1 year ago

Last modified 1 year ago

(Resolved) Language: Allow interface methods to have other namespaces than "public"

Reported by: lth Assigned to: anonymous
Type: defect Priority: trivial
Milestone: Component: Spec
Version: 4 Keywords:
Cc: brendan,jeffdyer,graydon

Description

In AS3 and in the RI, interface methods are always public. They can't be annotated as public, and any "use default namespace" pragma in the context is silently ignored. Implementing methods must be public.

I think that we should allow interface methods to be namespaced just like other methods. Specifically:

  • The default namespace in an interface should be whatever the default for methods is in the surrounding context (ie, same rule as in a class).
  • There should be no limitation on the namespaces that can annotate an interface method (including "private").
  • The implementing method must use the same namespace annotation as the interface method (after resolving defaults).

Attachments

Change History

Changed 1 year ago by graydon

Agreed. No idea why it is this way.

Changed 1 year ago by lth

  • owner deleted
  • component changed from Proposals to Spec

Waldemar notes that "private" is sterile. Otherwise, we accept this.

Changed 1 year ago by lth

  • priority changed from major to trivial
  • summary changed from Allow interface methods to have other namespaces than "public" to (Resolved) Language: Allow interface methods to have other namespaces than "public"
Note: See TracTickets for help on using tickets.