On Wed, Oct 2, 2013 at 6:20 AM, Niko Matsakis <[email protected]> wrote:
> Thanks for the link. I don't think it's too relevant: this is > basically an implementation detail for how one chooses to attach the > data to a closure pointer. We've opted to make closure "pointers" two > words, one for the environment and one for the code pointer. Go seems > to be moving to a one word representation where you point to the > environment and the environment points to the code. This has some > advantages (pointers are smaller) but also some disadvantages (you > can't convert a top-level function into a closure without allocation). > > > Niko It seems a global constant would be enough rather than doing an allocation.
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
