Mercerenies / tfactor

0 stars 0 forks source link

Aliasing Within Functors #17

Open Mercerenies opened 4 years ago

Mercerenies commented 4 years ago

There's no way to declare aliases (using either alias or open) inside of a functor.

Related to #9.

Mercerenies commented 4 years ago

As of 50f98da and 050515b, the automatic aliasing rules (i.e. opening the current module) have been extended to apply to the inside of functors. In this case, the aliases will resolve to fully qualified names beginning with the special Self keyword, which will be substituted to the actual instantiated module name during functor actualization.

We still can't explicitly declare aliases (alias or open), and automatic alias resolution fails inside of nested functors right now.