This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Get a symbol by its owner and its name

1 reply
Eugene Burmako
Joined: 2011-09-17,
User offline. Last seen 42 years 45 weeks ago.

Is there a way to get a symbol if I know its owner and its name?

Positive answer will be very useful for importers (that provide
bijection between universes, e.g. between reflective mirror and
reflective compiler).

Currently importers create a new symbol for every symbol they haven't
seen yet. This means that certain symbols can be created multiple
times - once inside their own universe and once again during an import
from a universe that already has the same symbol.

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: Get a symbol by its owner and its name


On Thu, Feb 9, 2012 at 5:27 AM, Eugene Burmako <eugene.burmako@epfl.ch> wrote:
Is there a way to get a symbol if I know its owner and its name?

Much of the time this would be owner.info.member(name).  Not always.  And owner and name doesn't uniquely identify a symbol, most obviously in the case of an overloaded method.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland