Let blocks already do that. See the Julia tests for examples On Friday, February 28, 2014, Kevin Squire <kevin.squ...@gmail.com> wrote:
> >> Think about it more, I think the best way to do this is for each package >> to define their own functions (not extending the functions in the base) >> with consistent naming. Then in the client code, we will be able to do >> VML.exp(a1) >> IPP.exp(a2) >> Yeppp.exp(a3) >> >> I think what we only have to do is to coordinate the naming across >> several packages. So I can easily replace ``Yeppp.add`` with ``VML.add`` or >> the other way round. >> > > A namespace macro allowing the use of different versions in different > regions would be nice. Maybe something like > > @using VML begin > ... > y = exp(a1) # uses VML.exp > ... > end > > @using IPP begin > ... > x = exp(a2) # uses IPP.exp > y = x - VML.exp(a1) > ... > end > > (Nesting would be challenging...) > > Cheers, > Kevin >