You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Besides the "lazy" aspect, it is useful to have statics (globals) whose value is not a "constant expression". The latest revision only compiles with Share types, which I believe makes it memory-safe.
I’d like this to be added to libstd or libsync. (It depends on sync::one::Once.)
The text was updated successfully, but these errors were encountered:
@Kimundi published a macro for "lazily initialized statics":
https://gist.github.com/Kimundi/8782487
http://www.reddit.com/r/rust/comments/1wvxcn/lazily_initialized_statics/
Besides the "lazy" aspect, it is useful to have statics (globals) whose value is not a "constant expression". The latest revision only compiles with
Share
types, which I believe makes it memory-safe.I’d like this to be added to libstd or libsync. (It depends on
sync::one::Once
.)The text was updated successfully, but these errors were encountered: