Re: Mutable reference to a structure field
From: Joe Marshall (prunesquallor_at_comcast.net)
Date: 06/19/04
- Next message: Brian Downing: "Re: Mutable reference to a structure field"
- Previous message: Alex Drummond: "Re: Mutable reference to a structure field"
- In reply to: Alex Drummond: "Re: Mutable reference to a structure field"
- Next in thread: Alex Drummond: "Re: Mutable reference to a structure field"
- Reply: Alex Drummond: "Re: Mutable reference to a structure field"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 19 Jun 2004 00:55:22 GMT
Alex Drummond <a.drummond@ucl.ac.uk> writes:
> I'm a bit confused about this now. Surely if I (say) created a big
> list of closures, that would have to take up some stack space? Isn't
> the environment that the closure captures stored on the stack in some
> way?
They would more likely be stored in the heap. If the compiler
determines that a closure is needed, it arranges to move the stack
allocated variables to the heap.
-- ~jrm
- Next message: Brian Downing: "Re: Mutable reference to a structure field"
- Previous message: Alex Drummond: "Re: Mutable reference to a structure field"
- In reply to: Alex Drummond: "Re: Mutable reference to a structure field"
- Next in thread: Alex Drummond: "Re: Mutable reference to a structure field"
- Reply: Alex Drummond: "Re: Mutable reference to a structure field"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|