On 5/12/2014 5:15 AM, Timon Gehr wrote:
On 05/12/2014 10:54 AM, Walter Bright wrote:
On 5/11/2014 10:57 PM, Marco Leise wrote:
Am Sun, 11 May 2014 17:50:25 -0700
schrieb Walter Bright <newshou...@digitalmars.com>:

As long as those pointers don't escape. Am I right in that one cannot
store a
borrowed pointer into a global data structure?

Right, and that's the point and entirely positive-to-do™.

This means that a global data structure in Rust has to decide what
memory allocation scheme its contents must use,

Global variables are banned in Rust code outside of unsafe blocks.

Global can also mean assigning through a reference passed as a parameter.

Reply via email to