> Hmmm...caching it in the HLL namespace? Does this not mean that two lookups
> from two different HLLs will result in two PMC proxies? If so, this is going
> to cause problems, since we really need one PMCProxy instance per PMC.
> Otherwise, any code that compares pointers to check class identity (which is
> the Right Way) is going to fail.

I think the idea is that this branch must never get reached from the
wrong HLL. Now when instantiating foreign pmc root_new must be used
instead of plain new. Until the old usage finish a deprecation cycle,
maybe a warning in that branch when the HLL of the PMC isn't the
current might be helpful.

-- 
Salu2
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to